regexp help
Nadav Chernin
Nadav.C at qualisystems.com
Wed Nov 4 12:05:51 EST 2009
Thanks, but my question is how to write the regex.
-----Original Message-----
From: simon.brunning at gmail.com [mailto:simon.brunning at gmail.com] On Behalf Of Simon Brunning
Sent: ד 04 נובמבר 2009 18:44
To: Nadav Chernin; Python List
Subject: Re: regexp help
2009/11/4 Nadav Chernin <Nadav.C at qualisystems.com>:
> I’m trying to write regexp that find all files that are not with next
> extensions: exe|dll|ocx|py, but can’t find any command that make it.
http://code.activestate.com/recipes/499305/ should be a good start.
Use the re module and your regex instead of fnmatch.filter(), and you
should be good to go.
--
Cheers,
Simon B.
More information about the Python-list
mailing list