Here is my string that I created by parsing data from a file:
723|NM|1|7201|QQ|1|72034|PP|1|72034N|AA|1|7203466|QW|1|72000|NM|1|7201111|NM|1
Ideally I would like this output:
723|NM|1
7201|QQ|1
72034|PP|1
72034N|AA|1
7203466|QW|1
72000|NM|1
7201111|NM|1
Since I was not successful parsing the data and appending it dynamically (I am new to python) I understand that I can get the same desired output by transforming this string.
I researched, tested, and am stuck.
Essentially I need to replace every 3rd instance of the delimiter with a new line (or, maybe something better that anyone can suggest).
Any help is greatly appreciated!
Thanks