Regular expression engine in 14 lines of Python
paste.lisp.org
paste.lisp.org
I started to write a quick parser for it to post here, but I have to get going... Letters, numbers, etc. can just be passed as char(c) literals, star and plus modify the most recent thing appended to the list, (a|b|c) groupings recursively call the parser and wrap the result. The whole thing gets wrapped in nested-pair seq calls, e.g. seq(a, seq(b, seq(c))) like in box-and-pair notation.