Sha256: e3873d7516dc126898e5847b22aa7b88713b06464c89837cd8c25a08ae571ab2
Contents?: true
Size: 552 Bytes
Versions: 249
Compression:
Stored size: 552 Bytes
Contents
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp) > Escape RegExp special characters ## Install ``` $ npm install --save escape-string-regexp ``` ## Usage ```js 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](http://sindresorhus.com)
Version data entries
249 entries across 222 versions & 34 rubygems