my $str = qq(

Please click here to view

); if ($str =~ /href="([^"]+)"/) { print "href=$1\n"; }