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/MelissaClick Sep 09 '17

There's no such thing as an example that is unparseable. Any single example can be parsed -- by encoding assumptions about that particular example into the parser. (This is trivially true as you can just use a constant function to return the parsed result -- you don't even need a regex, just a constant!)