Regular Expressions 101

Community Patterns

1...45678...877

NIgerian Phone Numbers RegEx Validation

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