Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

Match against number sequence using international +254 or local 0 prefix.

Submitted by m8r1x - 7 years ago