On Wed, 7 Sep 2016 08:51:36 -0700 (PDT), Asad ur Rehman wrote: [snip] > sofia/external/1203632525,CS_EXECUTE, > Outbound Call, > 12036325259, > ,12036325259, > , > ,ACTIVE, > 9047125683, > 9047125683, > RECV, > 75a9d3ee-7511-11e6-a115-89a1f4981d2c, > vb-pmedia,,,,,,,,,,,,,,,,,,,,,7841c6c0-7511-11e6-a139-89a1f4981d2c, > outbound,2016-09-07 11:40:57,1473262857,sofia/external/16189973135, > > where is a comma there should start new line ... How can i do it ?
Is your question "Given a string that may contain some commas, how do I insert a newline after each comma"? (Note that that is *not* what you show, but from what you show I can't tell what you want.) -- To email me, substitute nowhere->runbox, invalid->com. -- https://mail.python.org/mailman/listinfo/python-list