云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
sync
/
c
/
vue-modbus
/
modbus-project
/
node_modules
/
escape-string-regexp
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
index.js
2024-07-14 16:18:57
226 B
license
2024-07-14 16:18:57
1.09 KB
package.json
2024-07-14 16:18:57
791 B
readme.md
2024-07-14 16:18:57
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-08-29 21:18:44 Friday 216.73.216.167 Runningtime:0.077s Mem:1.48 MB