in reply to Re: Precompiling substitution regex
in thread Precompiling substitution regex

Looping misses the point of the other answers, which is to execute just one regex that matches all the patterns.