Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
((^090)([23589]))|((^070)([1-9]))|((^080)([2-9]))|((^081)([0-9]))(\d{7})
/

Description

Regex for validating Nigerian phone numbers using all mobile prefixes in the country

Submitted by Jubril Edu - 9 years ago