what 262,715 regex questions on stack overflow haven't answered (part 2)

18 points by abareplace


0x2ba22e11

Those three diagrams with Sisyphus and Icarus made me laugh.

It's a little unfortunate that that one StackOverflow answer about using regexes to parse HTML is so widespread when the actually textbook correct answer that doesn't require berating strangers on StackOverflow is just "you can't parse HTML with regex but you can lex it with regexes and feed tokens into a parser". The academic tradition for writing programming language parsers is after all to use lex (which is regex based) for tokenisation and yacc or one of its descendants (typically LR family) for parsing.

ag

Reading this illiterate style without proper capitalization is so tiring