RegexSelect Function
Returns first match of regular expression pattern going left to right.
Syntax 1
RegexSelect(string, searchPattern)
Returns first match of regular expression pattern going left to right.
Arguments
string
String - A string.
searchPattern
String - A regular expression pattern to search for.
Syntax 2
RegexSelect(string, searchPattern, caseSensitive)
Returns first match of regular expression pattern going left to right.
Arguments
string
String - A string.
searchPattern
String - A regular expression pattern to search for.
caseSensitive
Boolean - True to be case-sensitive in the regular expression pattern.
Remarks
- If no match is found, null is returned.
Example:
RegexSelect("test1", "e.t"); // returns "est"
Example:
RegexSelect("test1", "."); // returns "t".