http://www.perlmonks.org?node_id=933027


in reply to Re^6: aXML vs TT2
in thread aXML vs TT2

Have you considered writing a proper state machine-based lexer/parser? It would positively fly, compared to using regular expressions, and probably end up more amenable to extension (if you wanted to actually support XML, for instance).