{"_id":"polyfill-regexp-escape","_rev":"905545","name":"polyfill-regexp-escape","description":"Return a string with escaped regular expression characters.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2024-07-23T08:37:23.000Z","created":"2015-06-10T13:12:49.077Z","1.0.0":"2015-06-10T13:12:49.077Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"repository":{"type":"git","url":"https://github.com/jonathantneal/regexp-escape.git"},"versions":{"1.0.0":{"name":"polyfill-regexp-escape","version":"1.0.0","description":"Return a string with escaped regular expression characters.","main":"RegExp.escape.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jonathantneal/regexp-escape.git"},"keywords":["RegExp","escape","String","JavaScript","ECMA","polyfill","prollyfill"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"license":"CC0-1.0","bugs":{"url":"https://github.com/jonathantneal/regexp-escape/issues"},"homepage":"https://github.com/jonathantneal/regexp-escape","gitHead":"fa1d974217dc1e183241b5ceeb5e75270e43d54b","_id":"polyfill-regexp-escape@1.0.0","_shasum":"903832f29c71d87630d18507514f29e074f20966","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.32","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"903832f29c71d87630d18507514f29e074f20966","tarball":"http://registry-npm.ywwl.com/polyfill-regexp-escape/download/polyfill-regexp-escape-1.0.0.tgz","integrity":"sha512-GsL2pG6l/NdaXb4jwbYfYuXgve8264xnUzZoxpdVhmIW37xubNtREfnQwvbSoeWD0jFxgzH7teN6Xxrz54ki4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGj1R+EtEMSOG0xI1M28d9rE9ONU7SXmiNYxcEXMCPWAiBbQpdjA2+XMNlOkD1aej+ZGDOplHmRgdvQVg/7IfP7xw=="}],"size":1958,"noattachment":false,"key":"/polyfill-regexp-escape/-/polyfill-regexp-escape-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1433941969077,"_cnpm_publish_time":1433941969077}},"readme":"# RegExp.escape\n\n**RegExp.escape** returns a string with escaped regular expression characters for use within a regular expression.\n\n## Usage\n\n```js\nvar strName = 'Dr. Doogie Howser, M.D.';\n\nvar escName = RegExp.escape(strName); // Dr\\. Doogie Howser, M\\.D\\.\n\nvar regName = new RegExp('\\\\b' + escName + '\\\\b'); // /\\bDr\\. Doogie Howser, M\\.D\\.\\b/\n```\n\n## Browser compatibility\n\nAll modern browsers are supported, including:\n\n- Chrome\n- Internet Explorer\n- Firefox\n- Opera\n- Safari\n\n- Android 2.2+\n- Blackberry 7+\n- iOS Safari 4+\n\n## Prollyfill status\n\nIf you would like to see **RegExp.escape** in a JavaScript standard, subscribe to the [ECMAScript List] and request to have it added it to an [ECMA Specification].\n\nThis project was inspired by [Stuart P. Bentley]’s [Specifiction Topic]. After reading it, I decided to throw this together.\n\n---\n\nRegExp.escape.js is [323B](/RegExp.escape.js) or [107B](/RegExp.escape.min.js) minified and gzipped.\n\n[ECMAScript List]: https://mail.mozilla.org/listinfo/es-discuss\n[Specifiction Topic]: http://discourse.specifiction.org/t/regexp-escape-str/832\n[Anne van Kesteren]: https://twitter.com/annevk\n[Stuart P. Bentley]: https://twitter.com/stuartpb\n[ES6 Draft]: http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts\n","_attachments":{},"homepage":"https://github.com/jonathantneal/regexp-escape","bugs":{"url":"https://github.com/jonathantneal/regexp-escape/issues"},"license":"CC0-1.0"}