Thanks for the basename suggestion. That almost works. I'm running into a problem with some of the directory names when they include \800x\ see below. ―----------------------------------------------------------------------------- import sys, os, string
teststring = 'C:\shoreline\dvd\prep area\800x\060623_00001.jpg' print os.path.basename(teststring) ―----------------------------------------------------------------------------- Results in 800x0623_00001.jpg But it needs to be 060623_00001.jpg
-- http://mail.python.org/mailman/listinfo/python-list