Javascript Regular Expression for International Phone Number

前端 未结 4 1505
有刺的猬
有刺的猬 2021-02-06 17:05

The following regular expression isn\'t working for international phone numbers that can allow up to 15 digits:

^[a-zA-Z0-9-().\\s]{10,15}$

W

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 18:08

    See A comprehensive regex for phone number validation and Is there a standard for storing normalized phone numbers in a database?

提交回复
热议问题