IsRegexMatch Function

  • Updated

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.