Move the population of Regex from the constructor to helper methods.