I need to add a regular expression that matches all possible valid E.164 formatted phone numbers.
This regex works fine for for North American phone numbers, but I
Well, I used the accepted answer but it failed for many cases:
For inputs like:
the regex failed.
I finally used
^\+(?:[0-9]?){6,14}[0-9]$
This worked like charm!