[Zope] Cleaning Filenames from Windows

Dylan Reinhardt zope at dylanreinhardt.com
Fri Sep 19 19:22:17 EDT 2003


On Fri, 2003-09-19 at 15:44, Paul Winkler wrote:
> On Fri, Sep 19, 2003 at 03:35:40PM -0700, Dylan Reinhardt wrote:

> > How about (untested):
> > 
> > '.*\\([\w|\d]+)'
> 
> Or you could let the python core developers do it for you:
> 
> os.path.basename(foo)

Ah... nice catch.  Seems like every time I try to do something clever, I
find out the Python developers have already done it better. :-)

Dylan




More information about the Zope mailing list