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/link23 Sep 08 '17

I think correct, well-formed HTML is context free, but I vaguely remember seeing argument that the horrible, malformed HTML that exists on the real web can't be parsed with a CFG, so it requires at least a CSG.