https://github.com/nylen/node-regexp-escape
RegExp.escape function for quoting text for a regular expression.
https://github.com/nylen/node-regexp-escape
Last synced: 10 months ago
JSON representation
RegExp.escape function for quoting text for a regular expression.
- Host: GitHub
- URL: https://github.com/nylen/node-regexp-escape
- Owner: nylen
- Created: 2013-12-23T05:33:19.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-23T05:33:34.000Z (over 12 years ago)
- Last Synced: 2025-08-09T14:57:39.073Z (11 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
- From: http://stackoverflow.com/a/5306111/106302
- Originally from: http://simonwillison.net/2006/Jan/20/escape/ (dead link)