On Jun 24, 10:00 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > 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 ]
I like `and '.thumbnail.' not in p]` as a better ending. :) ~Sean -- http://mail.python.org/mailman/listinfo/python-list