Replaces all occurrences of a regular expression in the enclosed tokens.
Specify the regular expression that matches the substring to be replaced. Supports variable expansion. For more information, see Section 3.6, Variable Selector.
Specify the replacement string. Supports variable expansion. For more information, see Section 3.6, Variable Selector.
For details on creating regular expressions, see:
The pattern options CASE_INSENSITIVE, DOTALL, and UNICODE_CASE are used but can be reversed by using the appropriate embedded escapes.