Regex for phone number matching in JavaScript
Phone numbers vary wildly by country and formatting. This lenient pattern accepts an optional + and common separators. Tune it for your locale with the live tester.
/\+?\d[\d\s().-]{6,}\d/Try it live
The pattern and sample strings below are pre-loaded. Edit anything, or describe a variation in plain English and generate your own.
/\+?\d[\d\s().-]{6,}\d/valid ✓Tested live on the JavaScript engine. Other flavors are validated and flagged for differences, not executed.
No samples.