pattern search

Paul McGuire ptmcg at austin.rr.com
Tue Mar 27 15:19:33 EDT 2007


On Mar 27, 3:13 pm, Fabian Braennstroem <f.braennstr... at gmx.de> wrote:
> Hi to all,
>
> Wojciech Mu?a schrieb am 03/27/2007 03:34 PM:
>
> > Fabian Braennstroem wrote:
> >> Now, I would like to improve it by searching for different 'real'
> >> patterns just like using 'ls' in bash. E.g. the entry
> >> 'car*.pdf' should select all pdf files with a beginning 'car'.
> >> Does anyone have an idea, how to do it?
>
> > Use module glob.
>
> Thanks for your help! glob works pretty good, except that I just
> deleted all my lastet pdf files :-(
>
> Greetings!
> Fabian

Then I shudder to think what might have happened if you had used
re's! :)

-- Paul




More information about the Python-list mailing list