Regular Expressions 101

Community Patterns

123...6

Mobile Number (with country code)

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 - a year ago