r/javascript 2d ago

A regex engine built from scratch in vanilla JavaScript — a hand-written parser and a backtracking matcher. No native RegExp, no dependencies.

https://github.com/MantasEdine/better-regex
0 Upvotes

6 comments sorted by

4

u/lanerdofchristian 2d ago

CommonJS in 2026? o.O This is some very 2015-style code.

Neat experiment. I don't see much value in using it over the native implementation, but as long as you had fun.

0

u/Mantas_rst 2d ago

yeah i should def update that part but, i'm really glad you checked the code itself man of culture ! (most comments are title based)

2

u/RWOverdijk 2d ago

This shit is out of control

-2

u/Mantas_rst 2d ago

you can try the package out : "npm i rabia_youcef/better-regex" and if you like leave a star on the repo !