Jason Dusek wrote:
Hi Everyone,

Hello,

What is good way to pull the href from a link in html? If I have links like:

meow woof moo bark bahh <a href="here_kitty" class="domestic">meow</a> bahh moo bark

There's are modules that help you do it, but this may work for what you need:


my @href = $html =~ m/href\=\"((https?\:\/\/)?[\/\w\.\-]+)\"/ig;

HTH

Lee.M - JupiterHost.Net

How do I pull just the 'here_kitty' part?

-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to