From: Eric Schwartz Date: 2003-04-17T08:36:46+09:00 Subject: Re: [Q] Reg. Expressios with "\n" Daniel Carrera writes: > I'm just parsing the emails that I get from my hotmail-using friends. > I can't see any reason why auto-generated html emails would have something > like . The point isn't so much that (although it is a valid one), it's that next you decide to parse other bits further, and the deeper you go into HTML, the likelihood of your hitting something that a regex can't parse increases exponentially, if not faster. Sure, you can keep tweaking your regexes to account for each of the cases where they fail, and that'll keep you busy-- or you can just use an HTML parser and quit worrying about it. > I figure that what I have is good enough for my purposes. That's entirely your call. I'm just trying to point out that to parse HTML, you really should use an HTML parser-- other solutions may work in the short term, but they invariably fail in the long run. I'm also a big fan of using the right tool for the job-- just because you can loosen a nut on your wheel with a pair of pliers doesn't mean a tire iron isn't a better solution. :) -=Eric -- Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare. -- Blair Houghton.