Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Finding data in html file

by Skeeve (Parson)
on Sep 21, 2007 at 20:03 UTC ( [id://640436]=note: print w/replies, xml ) Need Help??


in reply to Finding data in html file

You mean the text of the anchor?
my $re = qr/<a[^>]* # an anchor tag href= # the Href in the anchor (["'])((?:(?!\1).)*)\1 # the value in the href [^>]*> # anything to the end of the anchor ([^<>]*) # Set brackets around it and get it +as $2 <\/a> # the end of the anchor (?:\s|<[^>]*>)+? # I THINK you need the ? here, otherwi +se you would slurp everything up to the last date (\d{4}-\d{2}-\d{2}) # the 9 digit number /isxm ;

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Log In?
Username:
Password:

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

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

    No recent polls found