import rep = re.compile(r':RE\[(.*?)]:')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."print([x.start(1) for x in p.finditer(test_str)])
Standard input is empty
[52, 100]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!