Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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


Comment on Re: regex question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-29 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls