I’ve been looking at many regexp validations for phone numbers but I could not find one that allows only 10 digits and not to start with 0 or 1, obviously only numbers
I found this one
^((\+)?[1-9]{1,2})?([-\s\.])?((\(\d{1,4}\))|\d{1,4})(([-\s\.])?[0-9]{1,12}){1,2}$
but is to allowing for what I need.
I am using this expression in javascript and I can use the max 10 digits there.
any ideas?
10 digits, not starting with 0 or 1:
Quick explanation: