Matches a string that conforms to the specified regular expression (regex), using the Boost engine. This version allows you to specify additional conditions for how the matching is carried out.
Parameters and return value
| Name | Type | Description |
|---|---|---|
string |
string |
A string that contains the regular expression to match |
options |
record |
Several fields that control the behavior of the search. |
| return value | pattern |
This pattern matches a string if the string contains a match for the regular expression
specified by the string argument.
|
The pattern that RegexExtended() returns is a record with two properties:
captures-
list<string>— A list of the capture groups in the regular expression fullMatch-
string— The full match
Option fields
| Name | Type | Description |
|---|---|---|
caseInsensitive |
bool |
Set this to true if you want the match to ignore character case.
|
exactMatch |
bool |
Set this to true if you want the match to be exact.
|
multiLine |
bool |
Allows the string to include line breaks.
When
When
Default: |
replace |
string |
If replace is specified, the fullMatch property of the yield record
contains the original string with matched substrings replaced according to the value of the replace option.
The |
singleLine |
bool |
When singleLine is true, then . will match \n.
Otherwise, it will not match.
Default: |
The multiLine and singleLine settings are independent of each other.