|
|
|
NOTE: This Design document is subject to change at any time. |
This string value is a list of characters to control options for regular expression matching. These are also known as "Perl Trailing Options" and are compatible with those character options commonly used in Perl and PHP trailing expressions. Note that these character options are case sensitive. Here is the function of each character option:
- i
- Makes the pattern match case insensitive. (PCRE_CASELESS)
- s
- Makes the period (.) match any character, including newline (\n). (PCRE_DOTALL)
- m
- Allows the ^ and $ anchoring patterns to match internal newlines. (PCRE_MULTILINE)
- x
- Ignores whitespace and comments (characters between # symbols) in the pattern (PCRE_EXTENDED)
- e
- When using RegExReplace, the replacement string is evaluated using the default scripting language to get the final string.
- U
- Reverses the greediness of the subpattern. * and + now match as little as possible instead of as much as possible. (PCRE_UNGREEDY)
- A
- Causes the beginning of the string to be anchored as if the first character in the pattern was a ^ symbol. (PCRE_ANCHORED)
- D
- Causes the $ character to match only at the end of line and not a \n at the end of the line (ignored if the Multiline m option is used). (PCRE_DOLLAR_ENDONLY)
- g
- Prevents the empty string from being considered a valid match in the pattern. (PCRE_NOTEMPTY)
- a
- Causes the RegReplace function to replace ALL occurences of the match instead of just the first.
|
|