Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^\+?[0-9]{0,3}-?[0-9]{7,10}$
/
gm

Description

Basic Regex to validate mobile numbers, with country code

Submitted by Ashutosh Mishra - 2 years ago