Regex isMatch

From Catglobe Wiki
Jump to: navigation, search



Regex_isMatch

Syntax

Regex_isMatch(string regularExpression,string inputString, bool ignoreCase );

Arguments

regularExpression: string.

inputString: string.

ignoreCase: bool.

Return type

Bool

Example

//Example 1
string regularExpression = "ab*c";
string inputString = "are you looking for ac";
bool ignoreCase = true;
Regex_isMatch(regularExpression,inputString, ignoreCase );//true

//Example 2
string regularExpression = "ab*c";
string inputString = "are you looking for ab c";
bool ignoreCase = true;
Regex_isMatch(regularExpression,inputString, ignoreCase );//false