MoneyWorks Manual
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.
In v9.1.3 and later, you can put (?i)
at the start of your regular expression to request case-insensitive matching.
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 end, or start and end; 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_GetMatches: Find tokens using a regular expression
Regex_Replace: Replace text in a string using a regular expression
Regex_Search: Find the first match of a regular expression in a string
Regex_SearchStr: Find the first match of a regular expression in a string and return the matching string
RemoveLeading: Remove characters from the start of a string
RemoveTrailing: Remove characters from the end of a string
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