Procedure for building a regular expression to match an XHTML open tag: https://gist.github.com/ferno/013a796b17314266b2b1 …
-
-
Replying to @qntm
And here's the resulting regex which will actually match an XHTML open tag: https://gist.github.com/ferno/0e282c33e08df265bc5e …
1 reply 1 retweet 1 like -
Replying to @qntm
It's not pretty but it's strictly regular which means it'll even run in linear time
1 reply 0 retweets 2 likes -
Replying to @qntm
"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"
1 reply 1 retweet 8 likes -
Replying to @qntm
"Have you tried using an XML parser?" "How do they work?" "Well, quite often they start by tokenising the stream, using regexes"
3 replies 1 retweet 3 likes -
Replying to @qntm
This is called an "XX problem". "No, I really do need what I asked for. Please stop second-guessing me and answer the question as stated"
2 replies 2 retweets 9 likes -
Replying to @qntm
"Why do you want to do that?" is frequently code for "I don't know how to do that."
2 replies 7 retweets 10 likes -
Replying to @qntm
"Why do you want to do that?" can also mean "I don't want to do that, and lack the empathy to envisage use cases other than my own"
4 replies 4 retweets 7 likes -
Replying to @qntm
Common phrasing is actually "Why would you want to do that?" i.e. "I can't even conceive of your use case, let alone answer the question."
3 replies 1 retweet 3 likes -
Replying to @qntm
"It's very rare for people to want to do that." WELL GUESS WHAT
2 replies 0 retweets 4 likes
And all of this ignores cases where the question does in fact already explain why this rare solution is required
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.