text processing

jitenshah78 at gmail.com jitenshah78 at gmail.com
Thu Sep 25 10:51:28 EDT 2008


I have string like follow
12560/ABC,12567/BC,123,567,890/JK

I want above string to group like as follow
(12560,ABC)
(12567,BC)
(123,567,890,JK)

i try regular expression i am able to get first two not the third one.
can regular expression given data in different groups





More information about the Python-list mailing list