Cleaning strings with Regular Expressions
Fredrik Lundh
fredrik at pythonware.com
Tue Sep 6 17:54:05 EDT 2005
"sheffdog" <masonsheffield at gmail.com> 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?
</F>
More information about the Python-list
mailing list