RegExMatch
Allows you to use a regular expression to search for information in a string. Use any value from the .NET RegexOptions enumeration, such as IgnoreCase and Multiline.
RegExMatch(1, 2, 3, 4)
Ordinal | Type | Description | |
---|---|---|---|
1 | string | Required | String to search |
2 | string | Required | Regular expression to use in the search |
3 | string | Required | Name or ordinal of the matching group to return |
4 | string | Required | Repeating string parameter of regular expression options to use |
The sample AMPscript below shows how to assign regular expressions and use the RegExMatch function to search a string for results.