News for hackers. Stuff that matters.
Re:Oh Yes You Can Use Regexes to Parse HTML by poelie on Saturday July 09, 2011 @01:50PM (#2745969)
It goes deeper than that. He has used back references. So formally it aren't real regular expressions anymore. (Back references rewrites the grammar on the fly).

Perl regular expressions are pretty powerful. I wrote a small perl program (just for fun after reading the post), which can parse S-Expressions. It wrote it quick, but it shows it is possible:

http://pastebin.com/ndrHTZJB

I know it has bugs.

Re:Oh Yes You Can Use Regexes to Parse HTML by d0m on Saturday July 09, 2011 @08:26PM (#2746680)
It's interesting, I'll take a look at it more seriously. Thanks for sharing.