Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mobile number validation in javascript with country code

/^[+]?[(]?[0-9]{3}[)]?[-s.]?[0-9]{3}[-s.]?[0-9]{4,6}$/im

//Valid Phone Numbers :
(123) 456-7890
(123)456-7890
123-456-7890
123.456.7890
1234567890
+31636363634
075-63546725
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mobile #number #validation #javascript #country #code
ADD COMMENT
Topic
Name
9+2 =