Regular Expressions 101

Community Patterns

1...34567...900

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^0[7-9]{1}[0-1]{1}[0-9]{8}$
/
gm

Description

This RegEx validates whether a number is in the standard valid Nigerian mobile number format or not.

Submitted by funmitoblessed - 2 years ago