Two suggestions: test before you post (and then test some
more) and don't use regexes to parse HTML. Granted, this
is trivial HTML to parse, but the more you use parsers, the
better you get at it. Also, the more you use templating
modules, the better you get at them. I hate to just outright
solve the problem, but i did. Here is link that you will have to click to see my solution - so any readers have
in reply to Re: Re: Re: How do I extract text from an HTML page?
in thread How do I extract text from an HTML page?
WARNING *SPOILERS* CLICK AT OWN RISK!
It's a lot more code than you posted, but it does a lot
more as well. ;)
(the triplet paradiddle with high-hat)