in reply to Why can't I use s///
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Why can't I use s///
by educated_foo (Vicar) on May 08, 2013 at 19:47 UTC |