AI_Assistant/node_modules/escape-string-regexp
Eric Pelland c560b33468 First commit 2023-01-09 08:38:54 -05:00
..
index.js First commit 2023-01-09 08:38:54 -05:00
license First commit 2023-01-09 08:38:54 -05:00
package.json First commit 2023-01-09 08:38:54 -05:00
readme.md First commit 2023-01-09 08:38:54 -05:00

readme.md

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