Function for escaping the special symbols for putting into the regexp pattern as a simple text in the pattern.
This function escapes all special symbols so that they are treated as a simple text.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $str | by value | string |
The string to be escaped. |
|
| $delimiter | by value | string | "/" |
The string used in the pattern. |
The escaped string.