Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-01-06 09:40
Flavor·PCRE2 (PHP)

/
^((\+?234)|0)([89]((0[0-9])|(1[0-9]))|([79]0[1-9]))[0-9]{7}$
/
gm
Open regex in editor

Description

This regex will allow you validate the pattern of Nigeria phone number.

Submitted by Raymonbell