shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
escapeRegexChars
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
Escape regex special characters from a string
Params
- str*-String
The string to escape regex characters from
Return
- -String
The escaped string
Example
import { escapeRegexChars } from '@blackbyte/sugar/string';
escapeRegexChars('/hello()'); // => \/hello\(\)Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space