Regular Expressions 101

Community Patterns

Egyptian mobile numbers

0

Regular Expression
PCRE (PHP <7.3)

/
^01[0125][0-9]{8}$
/
gm

Description

  • Phone length is exactly 11
  • Phone Prefix is with in allowed ones 010, 011, 012, 015
Submitted by anonymous - 4 years ago