Regex has a count/number thing where you can specify how many times it matches. I've never used it and can't remember how it works off the top of my head but I think it might be something like the following for the letters and periods for 1 to 6 repititions:
But check the usual helpful regex web sites for how to do it.