fork(1) download
  1. import re
  2. p = re.compile(r':RE\[(.*?)]:')
  3. test_str = "# Even more commments\nWARNING:HDLParsers:817 - \":RE[.*]:/modules/top/hdl_src/cpu_0342.vhd\" Line :RE[.*]: Choice . is not a locally static expression."
  4. print(p.findall(test_str))
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
['.*', '.*']