in reply to Re^3: get file name?
in thread get file name?

Hi,
The above RegEx failed on Windows because under Windows the directory delimiter is backslash \. The RegEx was written for Linux where the directory delimiter is forward slash /. For Windows, the RegEx would be:
$0 =~ /(.*\\)*(.+)/; print $2;
The following RegEx would work for both Windows and Linux:
$0 =~ /(.*(\\|\/))*(.+)/; print $3;