r/ProgrammerHumor • • Sep 08 '17

Parsing HTML Using Regular Expressions

Post image
11k Upvotes

377 comments sorted by

View all comments

Show parent comment

1

u/csman11 Sep 09 '17

It's actually something between type 1 and type 2 (at least for the actual Perl regexes). In fact, some have proven that Perl regexes can recognize any CSL, but none of these have been peer reviewed or seen much academic interest (probably because Perl is a tool for hacking together ungodly string manipulation, not researching computational or formal language theory).