fork download
  1. my $path = '\main\ABC_PRD\ABC_QEM\1\testQEM.txt\main\ABC_QEM\1';
  2. print $1 if $path =~ /(?=[^\\]+\.)([^\\]+)/;
  3.  
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
testQEM.txt