[Tutor] regular expression matching a dot?

Christian Meesters meesters at uni-mainz.de
Wed Oct 19 13:10:37 CEST 2005

Hi Misto,

Thanks, but this is no option for me - though I use glob a lot in other 
cases (mostly the quick and dirty hacks). But here I'm working on a 
list of names - not the files directly. Besides: REs are a lot more 
powerful (usually ;-), e.g. I'm using \d+ since I don't now that there 
are always only two digits, but there need to be one.


On 19 Oct 2005, at 12:11, Misto . wrote:

> [ Workaround ]
> What about using the glob module?
> http://docs.python.org/lib/module-glob.html
> you can use something like
> glob.glob('./[0-9][0-9]S[E|S].INF')
> (Not tested)
> Misto

More information about the Tutor mailing list