RegEx match open tags except XHTML self-contained tags
stackoverflow.com
stackoverflow.com
This post was the culmination of that meme.
The request seems perfectly sensible -- write a regexp to parse a single HTML tag, without a closing slash. Then all the replies are from smart-alecs trying to look clever about how regexps can't do generic nested parsing. Am I missing something?
Parsing arbitrary HTML requires a stack, and you don't get that with regex. It's the wrong tool for the job.
Edit: Additionally, the regex proposed doesn't even come close to a solution.