Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Link Parser, something to be desired?

by zwon (Abbot)
on May 29, 2009 at 22:50 UTC ( [id://766979]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $regex = qr{href\s*=\s*".*?"};
    
  2. or download this
    use strict;
    use warnings; # this is also useful
    ...
    __DATA__
    afjalsdfj href="asfasdfa" afdsas href="akjshfakjsd"
    href = "ajsfhaklj"
    
  3. or download this
    use strict;
    use warnings;
    ...
    <a href="foo" class="class">link</a>
    <p>some <a href="link">text</a> and <a href="another_link">more</a>
    </body></html>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found