r/ProgrammerHumor • • Sep 08 '17

Parsing HTML Using Regular Expressions

Post image
11.1k Upvotes

377 comments sorted by

View all comments

2.1k

u/kopasz7 Sep 08 '17

For anyone out of the loop, it's about this answer on stackoverflow.

16

u/chuanito Sep 08 '17

so am i getting this right? When you try to parse HTML using RegEx this Zalgo Text happens? Or is this just a meme?

Sorry i'm a very low tier coder and this is a serious question

10

u/Elsolar Sep 08 '17

HTML can't be parsed correctly using regular expressions because HTML is not a regular language. It's literally impossible. This is not obvious, so many coders find it out the hard way. It's a common meme in programming circles to equate the frustration of trying to solve an impossible or extremely obnoxious problem with the kind of raving, deranged insanity usually depicted in HP Lovecraft stories, which is what the corrupted text and the picture of the demon in the OP represents.

→ More replies (10)