Regular Expressions 101

Community Patterns

1...34567...877

Extract all telephones in text

1

Regular Expression
Python

r"
\b[\s(.)\d-]{6,}\d\b
"
g

Description

Find all telephones in text: 968123123 968 123 123 968.123.123 968 12 12 12

Submitted by anonymous - 7 years ago