REPOST: Re: Reg-Ex and lambda optimization

Dave Pawson DaveP at dpawsonNOSPam.freeserve.co.uk
Sun Dec 30 02:47:17 EST 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Dave Pawson <DaveP at dpawsonNOSPam.freeserve.co.uk>
Newsgroups: comp.lang.python
Subject: cmsg cancel <Xns91874F2699546davePdpawsonfreeserv at 195.92.195.157>
Control: cancel <Xns91874F2699546davePdpawsonfreeserv at 195.92.195.157>
Date: Mon, 31 Dec 2001 02:16:27 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.Xns91874F2699546davePdpawsonfreeserv at 195.92.195.157>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774327 27193 211.57.49.2 (31 Dec 2001 04:52:07 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:52:07 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list