http://www.perlmonks.org?node_id=814226


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