I get a guilty pleasure out of conversations that go like this:
Me: Don't use regexes to parse HTML, use HTML::Parser instead.
Him: But how do you think HTML::Parser parses HTML then?
Me: Actually it uses this C code here (pointing) and that looks to me like a state machine that implements an LR parser. Not regular expressions.
A state machine can only parse as well as a regular expression (and vice versa). But you knew that, right?
Re:Oneupmanship
davorg on 2003-09-01T11:46:50
I only said that's what it looked like to me. And I never claimed to be any kind of parsing expert.
But I know that HTML::Parser doesnt' use regular expressions:) Re:Oneupmanship
bart on 2003-09-01T13:41:38
You really should take a look of HTML::Parser version 2.25, then.But I know that HTML::Parser doesnt' use regular expressions:) Re:Oneupmanship
davorg on 2003-09-01T13:54:51
OK, make that "any reasonably modern version of HTML::Parser":)
Re:broken html parsing
babbage on 2003-09-02T14:45:48
To misuse the JWZ quote, "now you have two problems."Three, if you count C#
:-) Re:broken html parsing
jjohn on 2003-09-05T14:23:49
JWZ is right, except when he isn't. I hope being a club owner is everything he dreamed of.