in reply to Re: How to strip everything in a string except HTML Link
in thread How to strip everything in a string except HTML Link
I will have no idea what they are, could be any news affiliate website in the world.my $base = 'http://perlmonks.org/';
If that above were the string, it would remove Link: and leave the rest.Link: <a href="http://example.com">and Anchor</a>
my $string = q~Link: <a href="http://example.com">and Anchor</a>~; $string =~ s/<[a href.... # I cannot remember this string. There was o +ne that worked perfect, even if the link had target="_blank" it did n +ot matter what else it had... but I cannot find it in any of my files + or remember who to write it.
|
|---|