Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(((?:\+|00)964)|(0)*)7\d{9}$
/
gm

Description

Regex for Iraq mobile numbers ๐Ÿ‡ฎ๐Ÿ‡ถ๐Ÿ“ฑ

but the mobile number should be without any spaces between the number so you should remove all white spaces

By:- Russulh ๐Ÿ’๐Ÿปโ€โ™€๏ธ

Peace โœŒ๐Ÿผ

Submitted by anonymous - 5 years ago