On 05/18/2016 10:04 AM, Alexander Berntsen wrote: > On 18/05/16 17:46, Zac Medico wrote: >> not fnmatch.fnmatch(format_match.group(1), '1.*')): > Wait, why "not"?
Because this code searches for items which do NOT match the pattern, which is why the existing code uses a != operator. -- Thanks, Zac