Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-07-30 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls