import reline = " Name = Peppa Pig "match = [(x,y.strip()) for x,y in re.findall(r"(Name)\s*=(.+)", line)]print(match)
Standard input is empty
[('Name', 'Peppa Pig')]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!