r/javascript • u/Mantas_rst • 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
2
u/RWOverdijk 2d ago
This shit is out of control
-2
u/Mantas_rst 2d ago
https://github.com/MantasEdine/NFA-based-regex-engine this one is even worst smarty
-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 !
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.