well, since the markup is already there, and all i needed to do was *exactly* what the anon suggestion was .... your recommendation is a little over-the-top for now.
Comment on Re: Re: strip header from page fetched w/ LWP
No, using an HTML parser is the correct solution. It's impossible to properly parse HTML with pure regexen (it's possible with Perl's extended regexen, but it's still messy). It's hardly over the top; coding it with a parser would probably have taken as much time as it took for you to come up with broken regex solutions.
---- : () { :|:& };:
Note: All code is untested, unless otherwise stated