The tragedy of this SO question is that XHTML open tags are strictly regular and a regex will match them just fine http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags …
-
-
"But I didn't want to parse arbitrary HTML. You haven't answered my question" "Too late, I have 4000 votes and the question is closed"
-
"Have you tried using an XML parser?" "How do they work?" "Well, quite often they start by tokenising the stream, using regexes"
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.