Re: [Maya-Python] Re: Partition an excape Character

2013-02-07 Thread Anthony Tan
For the hell of it, same thing but with slightly different notation :) bits = filter(None, toto.split(\\)) -Anthony On 8 Feb 2013, at 12:17, San Luthra wrote: how bout this , [each for each in toto.split(\\) if each][0] though, its same as what Jeremy did !! On Thursday, 7

[Maya-Python] Re: Partition an excape Character

2013-02-06 Thread Jeremy YeoKhoo
On Thursday, 7 February 2013 11:17:33 UTC+11, Jeremy YeoKhoo wrote: Hi guys, Would anyone know how I can partition or rather grab a first element of a string of an escape character \\? Say for an example... toto= '\\titan\3D\work\Pitch\maya\scenes' I want to grab 'titan' or the