Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 541 Bytes

File metadata and controls

44 lines (33 loc) · 541 Bytes

regex.js Build Status

Automata based RegEx interpreter (educational!)

Dependencies

Use npm!

npm install

Test

npm test

Compile

Compile Jison and TypeScript with

npm run compile

Watch TypeScript with

npm run watch

Try

> node main.js "(a|bb)c" "bbc"
RegEx: (a|bb)c
Word: bbc
Match: true
> node main.js "(ab|c*)e" "ac"
RegEx: (ab|(c)*)e
Word: ac
Match: false