RegexSelect Function

  • Updated

Returns first match of regular expression pattern going left to right.

Syntax 1

 

Returns first match of regular expression pattern going left to right.

 

RegexSelect(string, searchPattern)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

searchPattern

String - A regular expression pattern to search for.

Syntax 2

 

Returns first match of regular expression pattern going left to right.

 

RegexSelect(string, searchPattern, caseSensitive)

 

 

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".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.