Why not ditch regular expressions altogether for this problem?
[ p for p in os.listdir(dir)
if os.path.isfile(os.path.join(dir,p))
and p.lower().find('.thumbnail.')==-1 ]-- http://mail.python.org/mailman/listinfo/python-list
Why not ditch regular expressions altogether for this problem?
[ p for p in os.listdir(dir)
if os.path.isfile(os.path.join(dir,p))
and p.lower().find('.thumbnail.')==-1 ]-- http://mail.python.org/mailman/listinfo/python-list