Correcly regex loops.