Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for US valid phone number format

String phone1 = "(234) 133-4393";// US valid phone number
System.out.println("phone ="+phone1.matches("^([0-9]{3}) {1}[0-9]{3}-{1}[d]{4}$"));
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #regex #US #valid #phone #number #format
ADD COMMENT
Topic
Name
2+4 =