Edit

Regex_Match (string, regex)

Result Type: Boolean

Definition:  Returns 1 if the string matches the regular expression regex. This function calls through to the standard C++ regex_match function using the default regex mode. Matching is case-sensitive, and the regular expression must match the entire string.

Examples:  Regex_Match("foo.txt", ".*\.(txt|TXT)")

returns 1.

Availability:  v8.1.7 and later.

Warning:  Some people, when confronted with a problem, think "I know, I'll use regular expressions". Now they have two problems —Jamie Zawinski (attributed)

If you just want a simple, case-insensitive text match, use the = or == operators (the former may have an @ wildcard at the beginning or end or both; the latter ignores @ wildcards).

See Also:

Dice: Get a subcomponent of a delimited tabular string

Head: Get some elements from the start of a delimited string

Left: Get characters from the start of a string

Mid: Get characters from the middle of a string

Regex_Replace: Replace text in a string using a regular expression

Replace: Replace matching text in a string with new text

Right: Get characters from the end of a string

Slice: Get a component of a delimited string

Tail: Get some elements from the end of a delimited string

Trim: Remove whitespace from beginning and end of a string