@os-team/escape-string-regexp
v1.0.5
Published
Escapes special characters in a string for regular expressions.
Downloads
214
Readme
@os-team/escape-string-regexp
Escapes special characters in a string for regular expressions.
Usage
Install the package
Install the package using the following command:
yarn add @os-team/escape-string-regexp
Simple usage
import escapeStringRegexp from 'escape-string-regexp';
const escapedString = escapeStringRegexp('a\\b'); // a\\b
Based on escape-string-regexp.