regex-regex:正则表达式解析正则表达式字符串

时间:2021-05-14 04:11:23
【文件属性】:
文件名称:regex-regex:正则表达式解析正则表达式字符串
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-14 04:11:23
Makefile RegExp字串 解析字符串。 安装 $ npm install regex-regex 用法 var re = require ( 'regex-regex' ) ; 关于 解析字符串。 var bool = re . test ( '/^beep$/' ) ; // returns true bool = re . test ( '' ) ; // returns false 字符串应转义。 bool = re . test ( '/^\/([^\/]+)\/(.*)$/' ) ; // returns false bool = re . test ( '/^\\/([^\\/]+)\\/(.*)$/' ) ; // returns true 例子 var re = require ( 'regex-regex' ) ; console . log ( re . test (
【文件预览】:
regex-regex-master
----.jshintrc(1KB)
----.gitignore(1KB)
----package.json(1KB)
----Makefile(2KB)
----.travis.yml(143B)
----LICENSE(1KB)
----examples()
--------index.js(394B)
----.jshintignore(118B)
----README.md(3KB)
----lib()
--------index.js(521B)
----TODO.md(11B)
----.npmignore(498B)
----.gitattributes(12B)
----test()
--------test.js(1006B)
----.editorconfig(169B)

网友评论