Cleaning strings with Regular Expressions

Fredrik Lundh fredrik at
Tue Sep 6 23:54:05 CEST 2005

"sheffdog" <masonsheffield at> wrote:
> Using basename works, but leaves the extra stuff at the end.
>  Which would have to be removed with another line of code
> I get this-->      ppbhat.tga";

if you're trying to parse Maya files, maybe you should start
by writing a simple Maya parser, and use that to extract the
relevant strings, *before* passing them to os.path.baseline?


More information about the Python-list mailing list