Use (times n) in regex tests