Hi, sorry, i know this is a really really simple question but i was wondering if it was possible to print out the match to the regular expression in perlscript (using asp as the interpreter)...
ie...here's my example...
i wanted to find the dir path (ie, C:\inetpub\wwroot\) that a file was using and match only the path name...
so i did this:
$Filename = (path.asp);
$path = $Server->MapPath($Filename);
$newpath = $path =~ /path.asp\b/;
$Response->Write($newpath);
which returns 1 as true...since it finds that match....but i want it to return the actual name of the path that it found without the filename....can someone tell me how to do that?