Validationflags: g

International Phone Number (Loose)

Match international phone numbers in a variety of loose formats including country codes, area codes, and separators.

Try it in RegexPro →

Available in

Pattern

regexengine-agnostic
\+?[1-9]\d{0,3}[\s.\-]?(?:\(?\d{1,4}\)?[\s.\-]?){2,4}\d{1,9}   (flags: g)

Raw source: \+?[1-9]\d{0,3}[\s.\-]?(?:\(?\d{1,4}\)?[\s.\-]?){2,4}\d{1,9}

How it works

\+? optionally matches a leading +. [1-9]\d{0,3} matches 1–4 digit country/area code. The repeating group (?:\(?\d{1,4}\)?[\s.\-]?){2,4} matches digit groups with optional parentheses and separators. Ends with 1–9 final digits.

Examples

Input

+1 (415) 555-2671

Matches

  • +1 (415) 555-2671

Input

+44 20 7183 8750

Matches

  • +44 20 7183 8750

Input

not a phone

No match

Common use cases

  • International contact form extraction
  • CRM data normalization across geographies
  • PII detection in documents
  • Lead generation form processing