Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to validate phone number regex javascript

/^d{3}(-|s)d{3}(-|s)d{4}$|^d{10}$|^1sd{3}(-|s)d{3}(-|s)d{4}$|^(1s?)?(d{3})(s|-)?d{3}-d{4}$/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #phone #number #regex #javascript
ADD COMMENT
Topic
Name
2+2 =