Default to 8
characters maxInput and minInput 14
characters
Regular Expression
^(?![ -])(?!.*[- ]$)(?!.*[- ]{2})[0-9- ]+$
Allows digits 0-9
, and the single white spaces
and single hyphens -
characters, but restricts the spaces and hyphens at the start, end, and repetitions between the value.
Note the length of the phone number is not validated by the regex but by the maxInput and input constraints.
The error message for an invalid format, (to be translatable in Ar is supported).
Please insert a valid contact number
.
Example