(regex_compile): When checking after exactn for a repetition operator, don't look beyond end of pattern arg.