13throwaway37
Re:Building a Regex Engine in Fewer Than 40 Lines of Code
on Tuesday December 05, 2017 @05:54AM (#15851029)
Literally the first sentence in the posted article mentions this:
I stumbled upon an article the other day where Rob Pike implements a rudimentary regular expression engine in c. I converted his code to Javascript and added test specs so that someone can self-guide themselves through the creation of the regex engine. The specs and solution can be found in this GitHub repository.