fork download
  1. import re
  2. text = r"\test\{list}\tasks, \test\{list}\{task}, \task\{id:[0-9]{6}}, \file\{task:[0-9]{6}}*name, \file\{test}*name"
  3. print( re.findall(r'{[a-zA-Z][^{}:]*}', text) )
Success #stdin #stdout 0.03s 9468KB
stdin
Standard input is empty
stdout
['{list}', '{list}', '{task}', '{test}']