Re: [Tutor] Filename match on file extensions

2012-10-02 Thread Dave Wilder
Tutor] Filename match on file extensions On Wed, Oct 03, 2012 at 03:14:16AM +, Dave Wilder wrote: > > Hello, > > Below is a snippet of a search I want to do for any file that contains the > string "quarantine" in the filename. > It works for picking up any file name co

Re: [Tutor] Filename match on file extensions

2012-10-02 Thread Steven D'Aprano
On Wed, Oct 03, 2012 at 03:14:16AM +, Dave Wilder wrote: > > Hello, > > Below is a snippet of a search I want to do for any file that contains the > string "quarantine" in the filename. > It works for picking up any file name containing "quarantine" except when > "quarantine" is used as an

Re: [Tutor] Filename match on file extensions

2012-10-02 Thread Dave Angel
On 10/02/2012 11:45 PM, Dave Wilder wrote: > >>> Hello, >>> Below is a snippet of a search I want to do for any file that contains the >>> string "quarantine" in the filename. >>> It works for picking up any file name containing "quarantine" except when >>> "quarantine" is used as an extension. >

Re: [Tutor] Filename match on file extensions

2012-10-02 Thread Dave Wilder
>> Hello, >> Below is a snippet of a search I want to do for any file that contains the >> string "quarantine" in the filename. >> It works for picking up any file name containing "quarantine" except when >> "quarantine" is used as an extension. >> For example, the search would find quarantine

Re: [Tutor] Filename match on file extensions

2012-10-02 Thread c smith
Would this be a time when regex is necessary? Maybe: \b[^.]*quarantine[^.]*\.[a-zA-Z]*\b ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Filename match on file extensions

2012-10-02 Thread Dave Wilder
Hello, Below is a snippet of a search I want to do for any file that contains the string "quarantine" in the filename. It works for picking up any file name containing "quarantine" except when "quarantine" is used as an extension. For example, the search would find quarantine.txt but fails to f