Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(0|\+98)?([ ]|-|[()]){0,2}9[1|2|3|4]([ ]|-|[()]){0,2}(?:[0-9]([ ]|-|[()]){0,2}){7}
/
g

Description

Iranian cell phone number pattern to being used in regular expression this work for iranian operator (irancell , Taliya, MCI,RighTel) Irancell and Taliya : 093 , MCI : 091 , RighTel : 092 cheers

Submitted by nasserFet - 7 years ago