云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
sync
/
jcore
/
web
/
front_end
/
node_modules
/
escape-string-regexp
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
index.js
2024-07-14 16:16:43
226 B
license
2024-07-14 16:16:43
1.09 KB
package.json
2024-07-14 16:16:43
2.03 KB
readme.md
2024-07-14 16:16:43
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-03 08:40:18 Wednesday 216.73.216.38 Runningtime:0.015s Mem:1.48 MB