Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(\d{1})[-](\d{3})[-](\d{3})[-](\d{4})
"
gm

Description

This locates a valid phone number in a list of phone numbers

Submitted by Dandaps - 2 years ago