$ npm install regexp-escape
This simple module adds a RegExp.escape function that quotes a string so that it can be included in a regular expression as a literal match.
RegExp.escape
© 2010 - cnpmjs.org x YWFE | Home | YWFE