News for hackers. Stuff that matters.
Re:The Fall of Stack Overflow by stavros on Tuesday July 25, 2023 @04:58AM (#36859749)
The question isn't looking to parse HTML (or XML). Regexes are inappropriate for HTML because they can't adequately match the starting and ending tags, not because of black magic. The OP isn't looking to do that, so regexes look like a perfectly acceptable way to go.
Re:The Fall of Stack Overflow by underdeserver on Tuesday July 25, 2023 @03:36PM (#36868146)
I agree completely.

But the asker is very clearly a newbie. The question does not contain further context. The asker's suggestion is wrong (I think). And we've all worked with junior engineers who try to use the wrong tool.

The answer is a whimsical way of making an appropriate suggestion in this inferred context.

Also, to be fair, I think it's not mathematically impossible to use dark regex magic (with look-behinds and such) to parse HTML, but that's a discussion for another day...