Kasi ramanathen wrote:
> $str='
href="Java.Sun.com'">http://srd.yahoo.com/S=2766679:WS1/R=1/K=java/SS=79
559/OCS=79428/H=0/T=1043090181/F=641685fa5455462d4f69450a6fd72ecc/*http:
//java.sun.com/">Java.Sun.com';
> if($str=~/[\w\W]*<(\W)/) {
> print $1;
> print "\n***\n";
> }
>
It's very hard to see
$str='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/";>Java.Sun.com';
if($str=~/[\w\W]*<(\W)/)
{
print $1;
print "\n***\n";
}
the output of the programe is
/
but i want the output as (extracting f