"You hysterical fool, HTML cannot be parsed with regular expressions!" then what do I use "An existing HTML parser!" how do they work "Well, a typical stream parser starts by tokenising the input." using what "..." USING WHAT
-
-
Replying to @qntm
But it's not quite *parsing*. There exists invalid HTML that will be recognized as valid by even the most advanced regular expressions, because regular expressions can't properly match nested expressions.
3 replies 0 retweets 9 likes -
I totally get the joke tho :3
1 reply 0 retweets 0 likes -
The original SO question was exactly about lexing though, specifically recognizing a specific kind of tag.
1 reply 0 retweets 0 likes
Plus, that tag is strictly regular and can 100% be matched with a regexhttps://gist.github.com/qntm/013a796b17314266b2b1 …
0 replies
0 retweets
1 like
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.