Recompiling the regex in every iteration of for loop defeats the purpose of compiling it. ;)