🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

regexp-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-parser

an elegant regular expression parser purely implemented in javascript

0.1.3
latest
Source
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

regex

FAQs

Package last updated on 09 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts