import retext = "AF_ESP=0.00546;AF_EXAC=0.00165;AF_TGP=0.00619"print( re.findall(r'(?:;|^)([^=]+)=([^;]+)', text) )
Standard input is empty
[('AF_ESP', '0.00546'), ('AF_EXAC', '0.00165'), ('AF_TGP', '0.00619')]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!