2 ms·
I mean, the replies are all jokes - that's why I submitted it. It's funny. Clearly the responders aren't trying to be helpful.
by kornish 9y ago
I mean, the replies are all jokes - that's why I submitted it. It's funny. Clearly the responders aren't trying to be helpful.
- ggggtez 9y agoI'd argue they are trying to be helpful. The top post highlights that this question is asked on stack overflow frequently, and that it begins with incorrect assumptions about what the technology is capable of doing. 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.
- CJefferson 9y agoThe top post is just a nonsense meme, and also completely ignores the question, which is about finding tags of a particular kind. In many html parsers, information like if a tag is self-closed isn't easy to find (or may even not be stored), so they could at least show how to do what the questioner asks, rather than just mock them.