Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by hawson (Monk)
on Sep 22, 2000 at 19:00 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-01-31 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?