On Jun 25, 1:00 pm, Justin Ezequiel <[EMAIL PROTECTED]>
wrote:
> [ p for p in os.listdir(dir)
>   if os.path.isfile(os.path.join(dir,p))
>   and p.lower().find('.thumbnail.')==-1 ]

if you really want a regexp solution, the following seems to work
(?i)(?<!\.thumbnail)\.jpe?g$

download and experiment with Kodos (http://kodos.sourceforge.net/)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to