Hi I have the following code that works correctly. However, every once in a while there is a file name that has an "06" instead of an "05" and it breaks the script. Is there a way I can use a wild card for that digit?
fileName = os.path.split(fullFileName)[-1]
fileNameShort = fileName[:-13]
fileDateTime = dt.strptime(fileName, "%m%d%Y_%H05shapefile.zip")