fork download
  1. import re
  2. text = r"{#{123}#};{#{abc}#}\n{#{345}#};{#{def}#}\n{#{789}#};{#{ghi}#}"
  3. print(re.findall(r'{#{(.*?)}#};{#{(.*?)}#}', text))
Success #stdin #stdout 0.03s 9460KB
stdin
Standard input is empty
stdout
[('123', 'abc'), ('345', 'def'), ('789', 'ghi')]