in reply to Re: Re: strip header from page fetched w/ LWP
in thread 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
|
|---|