Friday 29 January 2010

Canonical address format for phone numbers

The canonical address format is a universal (international) phone number format.

Pattern:

+ Country/RegionCode (AreaCode)SubscriberNumber

Example:

+1 (425) 555-0100

Regular Expression:

const string canonicalRegx = "(?:\+\d{1,4} ?(?:\(\d{0,5}\))?(?:\d+[-. ])*\d{2,})"

More:


No comments: