Will it work if you just grab the last characters that are not a slash?
# something like my $text="../files/jack/2012/derpone.pdf"; $text=~ s|.*/([^/]*$)|$1|g;
Cheers,
R.
In reply to Re: Why can't I use s///
by Random_Walk
in thread Why can't I use s///
by njack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |