It sounds like File::Basename might be a good fit for you. But if you *really* want to use a regex, you could do something like s#^.*/##.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: how to remove everything before last slash in perl?
by roboticus
in thread how to remove everything before last slash in perl?
by mipatel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |