From: Phlip Date: 2006-10-25T04:05:19+09:00 Subject: Re: parsing HTML code with regex Anthony Walsh wrote: > I'm trying to parse through some html code and count the number of times > a match happens. If the code is not yet XHTML, use Tidy to upgrade it. Then parse it with XPath, looking for your match. (Tip: All HTML that you control should be XHTML, of the highest quality. Don't rely on sloppy HTML and "browser forgiveness"!) -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!!