云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
home
/
jcore
/
web
/
front_end
/
node_modules
/
escape-string-regexp
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
index.js
2016-02-21 20:17:12
226 B
license
2014-06-25 05:34:14
1.09 KB
package.json
2016-02-21 20:55:06
791 B
readme.md
2016-02-21 20:17:12
552 B
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp) > Escape RegExp special characters ## Install ``` $ npm install --save escape-string-regexp ``` ## Usage ```js const escapeStringRegexp = require('escape-string-regexp'); const escapedString = escapeStringRegexp('how much $ for a unicorn?'); //=> 'how much \$ for a unicorn\?' new RegExp(escapedString); ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com)
2025-09-02 04:51:57 Tuesday 216.73.216.107 Runningtime:0.02s Mem:1.48 MB