regexp-parser
v0.1.3
Published
an elegant regular expression parser purely implemented in javascript
Downloads
3
Readme
regexp-parser
An elegant regular expression parser purely implemented in javascript.
Usage
var RegExpParser = require('regexp-parser');
var reg = new RegExpParser('ab');
console.log(reg.test('ab')); // => true
console.log(reg.test('ba')); // => false
console.log(reg.find('abc')); // => [{ index: 0, text: 'ab' }]
More features comes later.
Special Thanks
This project is heavily inspired by Amer Gerzic's Writing own regular expression parser.
License
MIT