Regular Expressions 101

Community Patterns

Iraqi phone number validation regular expression (RegEx)

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^0?7[4-9]{1}[0-9]{8}$
/
gm

Description

  • It must be 10 or 11 digits (with optional leading zero).
  • It must start with 7 (After leading zero)
  • Supporting 5 telecom operators:
  1. Zain Iraq (079, 078)
  2. Asiacell (077)
  3. Korek Telecom (075)
  4. Alkafeel Omnea (076)
  5. IraqCell (074)
Submitted by Areeb Al-Quraishi - 17 days ago (Last modified 17 days ago)