Don't know why this line was repeated x3 time?

the regex replace was repeated x3 times?