regex help
Ok, my mind's gone blank here and I'm just going round in circles.
Lets say you have a localised path to a file on a webserver, eg:
/dir1/dir2/dir3/file.ext
There is no telling what the file might be called, so you can't check the extension.
All I want is the bit after the last slash - the filename.
This seems ludicrously simple. I honestly can't believe I'm stuck. But I am. Someone please enlighten me.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|