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}$"));