Selecting a just the filename from the whole path String

hi flashers,

wondered if you could help me figure this one out, i have a path to a file in a variable, in the format:


i want to remove all of the file path information and just grab the filename and file extension. how am i best doing this?

Many thanks in advance chaps and chappettes,