Since E.164 formatted numbers are currently a big part of an average English-speaking person’s mobile phone number, it might be useful to test for this format.
Here is a useful regular expression that matches international phone numbers in the E.164 (The international public telecommunication numbering plan) format.
/^\+?[1-9]\d{1,14}$/
Matches:
- +123456
- +123456789101111
Non-matches:
- (123) 456 -7890
- +1234567891011111
- 123-456-7890