So you want to keep everything that looks like a link?
I would use something like HTML::TreeBuilder::XPath and the appropriate XPath query (//a). Other candidates are XML::Twig.
Personally, I would use App::scrape, which is a tiny command line wrapper around HTML::TreeBuilder::XPath.
In reply to Re: How to strip everything in a string except HTML Link
by Corion
in thread How to strip everything in a string except HTML Link
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |