The following RegEx would work for both Windows and Linux:$0 =~ /(.*\\)*(.+)/; print $2;
$0 =~ /(.*(\\|\/))*(.+)/; print $3;
In reply to Re^4: get file name?
by nikhil.patil
in thread get file name?
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |