Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
PCRE2 (PHP >=7.3)

/
(^0?(9(((1[0-9]?)|(9[0-4]?)|(03?)|((3[0356789]?)|(0[1-5]?)|(41?))|(2[0-3]?)|(9[89]?))(\d{0,7})?)?)?$)
/

Description

To Validate Iranian Operators Number Validation

Submitted by AMAISGOD - a year ago