my $test_match = "D:/newdir/cgi-bin/testbin/errors/"; #Here it will match just fine $test_match =~/(.*?)\/([^\/]+)$/; print "<br>*****$1*****$2****<br>";exit; #But in here the if doesn't, it will go to the ELSE, why? if($test_match =~/(.*?)\/([^\/]+)$/){ print "<br>^^^^$1^^$2^^^^<br>";} else{ print "No Match"; } exit;
In reply to Regular Expressions, IF, Issue by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |