fork download
  1. import re
  2. pattern = re.compile("(\{.+?\})")
  3. x = "{1.0 0b1 2006-01-01_12:34:56.789}{1.2345 0b100000 2006-01-01_12:34:56.789}"
  4. print(pattern.findall(x))
Success #stdin #stdout 0.02s 8688KB
stdin
Standard input is empty
stdout
['{1.0 0b1 2006-01-01_12:34:56.789}', '{1.2345 0b100000 2006-01-01_12:34:56.789}']