Barry Warsaw wrote:
> I tend to agree that "normal" users think of globs instead of
> regexps.  Unfortunately, there's no good non-filesystem glob module
> in Python that I know of.  Ideally, there'd be a module that
> translates globs to regexps.  That might not be too hard.

Would fnmatch.translate work?

http://docs.python.org/library/fnmatch.html#fnmatch.translate

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
User, n.: The word computer professionals use when they mean "idiot."
    -- Dave Barry

Attachment: pgpglTrPUwiAK.pgp
Description: PGP signature

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to