Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:0|98|\+98|\+980|0098|098|00980)?(9\d{9})$
/
gm

Description

Iran Mobile Number Validator In All Possible States

Submitted by Amin Basiri (amin.bsr99@gmail.com) - 5 months ago