Method RegEx():quickTest() Foundation

Performs a one-time pattern test.

Syntax
:quickTest( <cPattern>, <cSubject> ) --> lSuccess
Parameters
<cPattern>
The regular expression pattern.
<cSubject>
The subject string to test.
Return

.T. (true) if the pattern was matched, .F. (false) otherwise.

Description

Convenience class method for testing if a pattern matches without having to first create a RegEx object.

Quick test

IF RegEx():quickTest("^[A-Z]", "Hello") 
? "Starts with uppercase" 
ENDIF 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.