RegEx for validating US phone number format

后端 未结 2 1870
走了就别回头了
走了就别回头了 2021-01-28 07:16

I searched for phone number validation and ended up with below javascript code

jQuery.validator.addMethod(\"phoneUS\", function(phone_number, element) {
      ph         


        
2条回答
  •  野性不改
    2021-01-28 07:36

    I think this question is already asked with answer as well. Check this A comprehensive regex for phone number validation

提交回复
热议问题