verified-memory-allocator/node_modules/escape-string-regexp
LiuJun5817 23eacb0c28 feat(bitalloccascade16): implemented the alloc function for the 16-level tree structure 2025-09-04 14:17:31 +08:00
..
index.js feat(bitalloccascade16): implemented the alloc function for the 16-level tree structure 2025-09-04 14:17:31 +08:00
license feat(bitalloccascade16): implemented the alloc function for the 16-level tree structure 2025-09-04 14:17:31 +08:00
package.json feat(bitalloccascade16): implemented the alloc function for the 16-level tree structure 2025-09-04 14:17:31 +08:00
readme.md feat(bitalloccascade16): implemented the alloc function for the 16-level tree structure 2025-09-04 14:17:31 +08: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