On Jun 26, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 27, 10:01 am, [EMAIL PROTECTED] wrote: > > > >You may like to read this:http://www.amk.ca/python/howto/regex/ > > > This is a good resource. Thank you. > > Someone else pointed out that I needed to change the > > > if reCheck == "None": > > > to > > > if reCheck == None: # removed the "s > > "Somebody else" should indeed remain anonymous if they told you that. > Use > if reCheck is None: > or even better: > if not reCheck: > > It's not obvious from your response if you got these points: > (1) re.match, not re.search > (2) filename.startswith does your job simply and more understandably
Understood. I replaced re.search with re.match (although both work) can filename.startswith be used in a conditional? ala: if filename.startswith('CC_'): processtheFile() Thanks for the great help! -- http://mail.python.org/mailman/listinfo/python-list