Determines if an expression matches a Regular Expression pattern.
Syntax 1
|
Determines if an expression matches a Regular Expression pattern. |
|
IsRegexMatch(string, pattern) |
|
Arguments: |
|
|
string |
String - A string. |
|
|
pattern |
String - A regular expression pattern. |
Syntax 2
|
Determines if an expression matches a Regular Expression pattern. |
|
IsRegexMatch(string, pattern, caseSensitive) |
|
Arguments: |
|
|
string |
String - A string. |
|
|
pattern |
String - A regular expression pattern. |
|
|
caseSensitive |
Boolean - True to be case-sensitive in the regular expression pattern. |
Remarks
- Example: IsRegexMatch("ab12CD", "^[a-zA-Z0-9]+$") returns true.
- Example: IsRegexMatch("ab12cd", "^[a-z0-9]+$", true) returns true.
Comments
0 comments
Article is closed for comments.