Yury Selivanov @1st1.dev · Dec 3

Part 2 wasn't that problematic either

0 likes 1 replies

?

Replies

Aleksandr Kovalev · Dec 3

i think a counterexample for this regex will be don't()mul(2,2)don't()mul(3,3)do() your non-greedy regex will only match and remove the second part while you need to match and remove starting from the first don't(). at least this what i see on my input