AnsweredAssumed Answered

Escape chars - how to extract just file name?

Question asked by mimiller on May 31, 2013
Latest reply on Jun 4, 2013 by mimiller
I have an attribute that contains the entire path of some photos and I would like to extract just the file name with extension.

Example:
Input:  \\ITDNAS\MapLibrary\Photos\RRpics\058721Nn.jpg
Output: 058721Nn.jpg

Attempting to use the following in the field calculator, but I'm getting hung up on the escape chars (\) in the path.
!PicForward!.split('\')[2]
    

Could someone point out the correct way to go about this, please.

Outcomes