Escapes the special characters in the text used for the regular expression replacement.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $pattern | by value | string |
The pattern to be escaped. |
Returns the text with escaped special characters.