require("js-whatever/js/escape-regex")(str) → {string}
Escapes regular expression characters in strings to allow them to be used with new RegExp()
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string | The string to escape |
- Source:
Returns:
The input string with regular expression characters escaped
- Type
- string
- Source: