All Projects → deniskyashif → regexjs

deniskyashif / regexjs

Licence: other
A fast and minimal regular expression engine.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to regexjs

Regex Dos
👮 👊 RegEx Denial of Service (ReDos) Scanner
Stars: ✭ 143 (+123.44%)
Mutual labels:  regular-expression
Regex.persian.language
Collection of Regex for validating, filtering, sanitizing and finding Persian strings
Stars: ✭ 172 (+168.75%)
Mutual labels:  regular-expression
String Replace Loader
Replace loader for Webpack
Stars: ✭ 205 (+220.31%)
Mutual labels:  regular-expression
Srl Php
Simple Regex Language
Stars: ✭ 1,808 (+2725%)
Mutual labels:  regular-expression
Parseback
A Scala implementation of parsing with derivatives
Stars: ✭ 168 (+162.5%)
Mutual labels:  regular-expression
Web Database Analytics
Web scrapping and related analytics using Python tools
Stars: ✭ 175 (+173.44%)
Mutual labels:  regular-expression
Wayeb
Wayeb is a Complex Event Processing and Forecasting (CEP/F) engine written in Scala.
Stars: ✭ 138 (+115.63%)
Mutual labels:  regular-expression
Renamer
Rename files in bulk.
Stars: ✭ 240 (+275%)
Mutual labels:  regular-expression
Regularexpressiondecoder
A decoder that constructs objects from regular expression matches.
Stars: ✭ 169 (+164.06%)
Mutual labels:  regular-expression
Automata.js
A regular expression converter
Stars: ✭ 202 (+215.63%)
Mutual labels:  regular-expression
Find
A find-in-page extension for Chrome and Firefox that supports regular expressions.
Stars: ✭ 157 (+145.31%)
Mutual labels:  regular-expression
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+7473.44%)
Mutual labels:  regular-expression
Xo
Command line utility that composes regular expression matches.
Stars: ✭ 184 (+187.5%)
Mutual labels:  regular-expression
Compile Time Regular Expressions
A Compile time PCRE (almost) compatible regular expression matcher.
Stars: ✭ 2,144 (+3250%)
Mutual labels:  regular-expression
Phpverbalexpressions
PHP Regular expressions made easy
Stars: ✭ 2,380 (+3618.75%)
Mutual labels:  regular-expression
Micromatch
Contributing Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
Stars: ✭ 1,979 (+2992.19%)
Mutual labels:  regular-expression
Ocaml Re
Pure OCaml regular expressions, with support for Perl and POSIX-style strings
Stars: ✭ 172 (+168.75%)
Mutual labels:  regular-expression
Regex For Regular Folk
🔍💪 Regular Expressions for Regular Folk — A visual, example-based introduction to RegEx [BETA]
Stars: ✭ 242 (+278.13%)
Mutual labels:  regular-expression
Werdlists
⌨️ Wordlists, Dictionaries and Other Data Sets for Writing Software Security Test Cases
Stars: ✭ 216 (+237.5%)
Mutual labels:  regular-expression
Regexpu
A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.
Stars: ✭ 201 (+214.06%)
Mutual labels:  regular-expression

regexjs

Build Status

A regular expression engine implementation in JavaScript. It supports concatenation, union (|), zero-or-more (*), one-or-more (+), and zero-or-one (?) operations as well as grouping. It follows Ken Thompson's algorithm for constructing an NFA from a regular expression.

Check out my blog post for the complete implementation details.

Example

const { createMatcher } = require('./regex');
const match = createMatcher('(a|b)*c');

match('ac'); // true
match('abc'); // true
match('aabababbbc'); // true
match('aaaab'); // false

Try It

git clone https://github.com/deniskyashif/regexjs.git
cd regexjs
npm i
npm start

Run the tests

npm t

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].