Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-08-19 08:30
Flavor·PCRE2 (PHP)

/
^(0098|\+98|98|0|)(9\d{9}$)
/
gm
Open regex in editor

Description

This regex is designed to identify and extract Iranian mobile phone numbers. By using the pattern ^(0098|\+98|98|0|)(9\d{9}$), this pattern allows you to recognize phone numbers in various formats, including international and local prefixes. This tool is particularly useful for programmers and data analysts.

Submitted by Mohammad Mahdi Arbabpouri