Sorry, I suck at regexp. If I have a path like this:
/long/path/to/fileI just need to specify file.
If someone delivers file/, I just need to file.
If someone delivers /file/, I just need to just file.
I used the functions stringras a crutch, but it looks like a straightforward territory grep. Help me please?
source
share