This is a simple & fast solution.use strict; use warnings; my $fullname = '/windows/system32/cmd.exe'; my $p = rindex($fullname, '/'); my $filename = ++$p ? substr($fullname, $p) : $fullname; print "$fullname\n\n$filename"; exit;
In reply to Re: Regex for ignoring paths
by harangzsolt33
in thread Regex for ignoring paths
by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |