Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-11-25 19:13
Flavor·PCRE2 (PHP)

/
^(\+?\d{1,4}[\s-]?)?(\(?\d{3}\)?[\s-]?)?\d{3}[\s-]?\d{4}$
/
gm
Open regex in editor

Description

This validates any mobile or landline phone number in the world.

Submitted by kdesilva