8 ms·
I was really expecting an article about parsing HTML when he said right at the beginning: >> You cannot parse HTML with regular expressions, because HTML isn’t
by tolos 14y ago
I was really expecting an article about parsing HTML when he said right at the beginning:
>> You cannot parse HTML with regular expressions, because HTML isn’t regular. Use an XML parser instead.
> This statement - in the context of the question - is somewhere between very misleading and outright wrong.
But nope, after disappointment and going back to the beginning, he says he's not talking about HTML:
> What I’ll try to demonstrate in this article is how powerful modern regular expressions really are.
And not even a warning about how easy it is to make really terrible regex.