Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\+?(254|0)7|(254|0)1\d{8}
/
g

Description

Match against number sequence using international +254 or local 07 and 01 prefixes.

Submitted by Faderr Blak - 3 years ago