more simple to split the string?

elearn elearn2014 at gmail.com
Thu Aug 7 20:23:06 EDT 2014


str='(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"'
x=str.split(' "')
[i.replace('"','') for i in x]
['(\\HasNoChildren \\Junk)', '/', '[Gmail]/&V4NXPpCuTvY-']

x.strip(" ") will create four parts.

is there more simple to do that ?



More information about the Python-list mailing list