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:

file:///C|/Documents%20and%20Settings/person/My%20Documents/Flash%20Development/JSFL/myfile.as

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,

j:+)