Fix up regexp constraint.