Reg-Ex and lambda optimization

Dave Pawson DaveP at dpawsonNOSPam.freeserve.co.uk
Sun Dec 30 08:47:17 CET 2001


"MikeCrowe" <mikecrowe at bigfoot.com> wrote in
news:mailman.1009670854.26405.python-list at python.org: 

> Hi folks,
> 
> New to Python, and had this question.  I couldn't figure out how to
> read a directory and filter the results by what I wanted.  I basically
> wanted to read: 
>     dir\db*.*

Daft name, great module though,
look for glob() in your documentation.

 Unsure how I found it with a name like that,
but boy does it do the business! Keep the re package
for file contents, and scour the documentation.

HTH DaveP



More information about the Python-list mailing list