in reply to extract file name from a dynamic path
my $file_name = ''; $tst = 'test\testweb\testlibb\file.-finaltestfla.jar'; $file_name = $1 if ($tst =~ m/\A\S+\\(.*?\.jar)\z/i); print $file_name . "\n" . $tst;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: extract file name from a dynamic path
by jwkrahn (Abbot) on Sep 06, 2008 at 18:32 UTC | |
by dani_cv (Acolyte) on Sep 06, 2008 at 18:57 UTC | |
by SFLEX (Chaplain) on Sep 06, 2008 at 20:49 UTC |