import re string = '99233 (I21.4,I50.23), 93010 (I21.4,I50.23)'parts = re.split(r'(?<=\)),\ ', string)print(parts)
Standard input is empty
['99233 (I21.4,I50.23)', '93010 (I21.4,I50.23)']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!