add a clarifying comment in fixRegex
add a unit test for nonreplace regex with {n} for repeated pattern.