DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit