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.
Could someone point out the correct way to go about this, please.
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.
Code:
!PicForward!.split('\')[2]