regexplus

0.0.0 • Public • Published

regexplus spm version


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))*\)')

API

.exec(String str)

.test(String str)

.compile()

PROPERTY

.global

.ignoreCase

.lastIndex

.multiline

.source

/regexplus/

    Package Sidebar

    Install

    npm i regexplus

    Weekly Downloads

    0

    Version

    0.0.0

    License

    none

    Last publish

    Collaborators

    • hotoo