Add reps and outreps regex validity check. Fixes #575.