import repattern = re.compile("(\{.+?\})")x = "{1.0 0b1 2006-01-01_12:34:56.789}{1.2345 0b100000 2006-01-01_12:34:56.789}"print(pattern.findall(x))
Standard input is empty
['{1.0 0b1 2006-01-01_12:34:56.789}', '{1.2345 0b100000 2006-01-01_12:34:56.789}']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!