Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regex question

by spadacciniweb (Deacon)
on Dec 24, 2009 at 12:06 UTC ( #814226=note: print w/replies, xml ) Need Help??


in reply to regex question

I suppose your href is always equal ('<a href="url"').
$line = '<div class="rightbox8"> <p style="text-align: center"><strong +><a href="http://www.a_site.com/pubs.asp?ID=999582">Please click here + to view</a></strong></p>'; if ($line =~ /^.+<a href="(.+)".+/) { print $1; }

Mariano

(($_="Mzz ojjdloobnf jt uvy5502383")=~y~b-zg2-5c96-81~a-z0-9~s)=~s~~~s; print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814226]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-11 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.