in reply to R.Exp. Matching from the Right

Try This
my $ file = "c:/progra~1/apache~1/apache2/cgi-bin/test/new/Feb23-2006_ +0_test_error.txt"; print "$'\n", if($file=~/(.*)\//g);