import reline = 'VERSION="OTHER" POWER="LOW" FREQ="OFF" MAXTUN="BLER"'results = re.findall(r'(VERSION|FREQ)="(.*?)"', line)print(dict(results))
Standard input is empty
{'FREQ': 'OFF', 'VERSION': 'OTHER'}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!