regexplus
v0.0.0
Published
RegExp Plus
Downloads
18
Readme
regexplus
RegExp Plus.
regexprove Regular Exprossion Improve.
Improve:
- Named group.
- 反向预搜索,反向预搜索不匹配
- 递归匹配
INSTALL
via npm:
$ npm install regexplus --save
via spm:
$ spm install regexplus --save
USAGE
var RegExplus = require('regexplus');
var reg = new RegExplus('@(?:<profile>[a-z0-9]+)/(?:<repository>[a-z0-9]+)');
var m = reg.exec('@hotoo/regexplus');
console.log(m.profile); // hotoo
console.log(m.repository); // regexplus
var r = new RegExplus('\(([^()]|(?R))*\)')