Does Stack Overflow have some sort of community standard for filtering out knee-jerk responses to questions?
I am well aware of the issues when you try to parse HTML with regular expressions. In the abstract, it is A Bad Idea. And I know why. So it's frustrating when every mention of regular expressions and HTML now results in someone popping up to say, "No, bad idea" (examples 1 and 2 that I've seen within the last 24 hours) without explaining why or stopping to consider the situation. Because while a regex isn't the best possible solution to parsing a language grammar, it is better than nothing. More importantly, it is a perfectly valid solution when the situation is well-defined: if you look at my second example, the questioner has a completely fixed HTML string they want to parse. None of the problems of regex/ HTML parsing apply. But someone gets 3 upvotes for parroting Accepted Wisdom.