go ahead... be a heretic | |
PerlMonks |
Re: remove the part of the string that is after the second to last '/'by dragonchild (Archbishop) |
on Mar 07, 2002 at 21:46 UTC ( [id://150146]=note: print w/replies, xml ) | Need Help?? |
$var =~ s![^/]*/$!!;
Have fun! :-) ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|