regexp questoin

Simon Brunning simon at brunningonline.net
Sun Jun 11 07:52:08 EDT 2006


On 9 Jun 2006 17:44:42 -0700, micklee74 at hotmail.com
<micklee74 at hotmail.com> wrote:
> actually, i am doing an application that allows user to delete files by
> entering an input pattern.

If you are looking to match filenames, you might want to have a look
at the fnmatch and glob modules. The patterns that they support are
less powerful and flexible than regex patters, but much simpler, and
specifically designed with filename matching in mind.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list