escape-regexp

Escape regular expression special characters

npm install escape-regexp
591 downloads in the last day
3 111 downloads in the last week
14 786 downloads in the last month

escape-regexp

Escape regular expression special characters.

Example

var escape = require('escape-regexp');
escape(str);

License

MIT

npm loves you