regular expressions eliminating filenames of type foo.thumbnail.jpg
Justin Ezequiel
justin.mailinglists at gmail.com
Mon Jun 25 01:17:57 EDT 2007
On Jun 25, 1:00 pm, Justin Ezequiel <justin.mailingli... at gmail.com>
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/)
More information about the Python-list
mailing list