$ cnpm 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
Copyright 2013 - present © cnpmjs.org | Home |