import re P = re.compile(r’(?<=\\{\\n)((.*\\n)*)(?=\\})’, re.MULTILINE) text = title { P 01 X 02 } re.findall(P, text)
With thi