FLUJOS/BACK_BACK/node_modules/escape-string-regexp
2025-11-07 00:06:12 +01:00
..
index.js flow like the river 2025-11-07 00:06:12 +01:00
license flow like the river 2025-11-07 00:06:12 +01:00
package.json flow like the river 2025-11-07 00:06:12 +01:00
readme.md flow like the river 2025-11-07 00:06:12 +01:00

escape-string-regexp Build Status

Escape RegExp special characters

Install

$ npm install --save escape-string-regexp

Usage

const escapeStringRegexp = require('escape-string-regexp');

const escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> 'how much \$ for a unicorn\?'

new RegExp(escapedString);

License

MIT © Sindre Sorhus