I'm not sure if I've phrased it correctly, but hopefully the example will clear it up:
re.search(fileMask.replace('*','.*?'),fileName):
For the first parameter in the re.search() call, how can I ensure that I will pass the value returned by the fileMask.replace() call as a raw string?
Something to the effect of:
re.search(r'fileMask.replace('*','.*?')',fileName):
..although that won't work because I actually need the fileMask function to be called.