in reply to Re: (jeffa) Re: delete something from a variable
in thread delete something from a variable

Ahhh, that's not /aasd then, is it? Seriously, just anchor the match - ^ for the beginning, $ for the end:
$var =~ s{/[^/]+$}{};

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)