Regex for phone number (E.164)

/\+[1-9]\d{6,14}\b/g

Options
Matches

Examples

Note

E.164 is a + then up to 15 digits with no spaces, the format to store numbers in.

Matches in the example

  • "+14155552671"
  • "+442071838750"
  • "+819012345678"

Token by token

  1. \+ the character “+”
  2. [1-9] one of: “1” to “9”
  3. \d{6,14} a digit (0–9), between 6 and 14 times, as many as possible
  4. \b a word boundary

Other patterns