Regex isMatch

From Catglobe Wiki
Revision as of 11:40, 29 December 2017 by Nguyenduyan (talk | contribs) (Created page with "Category:General_Functions {{HelpFiles}} = Regex_isMatch = == Syntax == Regex_isMatch(string regularExpression,string inputString, bool ignoreCase ); == Arguments...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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