Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How can I find the links in HTML tags?

by hawson (Monk)
on Sep 22, 2000 at 19:00 UTC ( [id://33637]=note: print w/replies, xml ) Need Help??


in reply to How can I find the links in HTML tags?

@links = $html =~ /<a\s+href="([^"]+)"/gi;

Of course, this isn't robust and is easy to fool. But it'll work in a lot of cases, especially if you have control over the quality of the HTML input.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://33637]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found