Parse Phone Number into component parts

后端 未结 6 1262
太阳男子
太阳男子 2020-12-31 11:27

I need a well tested Regular Expression (.net style preferred), or some other simple bit of code that will parse a USA/CA phone number into component parts, so:

6条回答
  •  心在旅途
    2020-12-31 12:05

    None of the answers given so far was robust enough for me, so I continued looking for something better, and I found it:

    Google's library for dealing with phone numbers

    I hope it is also useful for you.

提交回复
热议问题