Split string data have ","

moonhkt moonhkt at gmail.com
Tue Jan 29 11:59:47 EST 2013


Hi All

Python 2.6.2 on AIX 5.3
How to using split o

>>> y = '"abc.p,zip.p",a,b'
>>> print y
"abc.p,zip.p",a,b
>>>

>>> k= y.split(",")
>>> print k[0]
"abc.p
>>>

Need Result, First element is
abc.p,zip.p



More information about the Python-list mailing list