Re:A Regular Expression Matcher (2007)
by forgotpwtomain on Sunday July 31, 2016 @10:34PM
(#12199928)
I have a re.c file in my best-of collection of code examples locally - but I can't seem to find the original source quickly - nevertheless it was written by Russ Cox[0] and he's spent a lot of time making regular expressions accessible and elegant, his articles are a great resource.
[0] https://swtch.com/~rsc/regexp/