1.0.0 • Published 4 years ago
@feizheng/next-escape-regexp v1.0.0
next-escape-regexp
Escape regexp for string.
installation
npm install -S @feizheng/next-escape-regexp
usage
import '@feizheng/next-escape-regexp';
const str = 'How much $ for a 🦄?';
const res = nx.escapeRegexp(str);
// result:
// How much \\$ for a 🦄\\?
resources
1.0.0
4 years ago