implementation of the node-oniguruma API using xregexp, various shims, replacements, and elbow grease.
See node-oniguruma.
var scanner = new OnigScanner(['(?<!a)b'])
scanner.test('bb') // match.
scanner.test('ab') // fails to match.
var scanner = new OnigScanner(['cat|(?<!a)b'])
scanner.test('cat') // match.
scanner.test('bb') // match.
scanner.test('ab') // fails to match.
\x{xxxx}
format unicode escape codesvar scanner = new NOnigScanner(['\\x{2603}'])
scanner.findNextMatchSync('☃') // match.
This is a work in progress please join in, open some issues, submit pull requests, and help build a crazy full-featured regex parser for JavaScript.
ISC