Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
[+]\d{2}?[-\s]?\d{5}?[-\s]?\d{5}|\(\d{3}\)\-\d{3}-\d{4}
"
gm

Description

extracting mobile number along with country code

Submitted by anonymous - 2 years ago