$str='<a href="Java.Sun.com'">http://srd.yahoo.com/S=2766679:WS1/R=1/K=java/SS=79559/OCS=79428/H=0/T=1043090181/F=641685fa5455462d4f69450a6fd72ecc/*http://java.sun.com/"><b>Java</b>.Sun.com</a></big>'; if($str=~/<a href=[\w\W]*>[\w\W]*<(\W)/) { print $1; print "\n***\n"; }
the output of the programe is / **** but i want the output as (extracting form string) "><b>Java</b>.Sun.com if i change my if statement to if($str=~/<a href=[\w\W]*>([\w\W]*)<(\W)/) the $1 is blank. plese help i'm in urgent Catch all the cricket action. Download Yahoo! Score tracker