Regex to match all us phone number formats

后端 未结 7 789
借酒劲吻你
借酒劲吻你 2020-12-03 03:32

First of all i would say i have seen many example here and googled but none found that matches all the condition i am looking for some match top 3 not below some inbetween.

7条回答
  •  星月不相逢
    2020-12-03 04:07

    for c#, the for US phone number validation should be like below

    ^\(?\d{3}?\)??-??\(?\d{3}?\)??-??\(?\d{4}?\)??-?$
    

    777-777-7777

提交回复
热议问题