Simple Phone Number validation
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...
Submitted by Sowed Castelli - 3 years ago (Last modified 3 years ago)