RGJS6 Regex module.
Methods
-
<static> escape(str)
-
Escape a regexp.
Parameters:
Name Type Description str
string A string
Returns:
A regexp-escaped string
- Type
- string
Example
rgjs.regex.escape("Look up.") // 'Look\ up\.'
RGJS6 Regex module.
Escape a regexp.
Name | Type | Description |
---|---|---|
str |
string | A string |
A regexp-escaped string
rgjs.regex.escape("Look up.") // 'Look\ up\.'