Regular Expressions 101

Community Patterns

Egyptian Phone Number Format

1

Regular Expression
Python

r"
\d{3}\s?\d{4}-?\d{4}
"
gm

Description

This regex extract all the phone number (Egyptian Format: xxx xxxx-xxxx)

Submitted by anonymous - 4 years ago