Not going to introduce a dedicated constraint for this case. The use case can be solved by either using @Pattern or by creating a custom constraint.