Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?:(?<=^)|(?<=\D))((00|\+)?55(\s|\.|-)*)?((\()?0?\d{2}(?(5)\)|)(\s|\.|-)*)?(9(\s|\.|-)*)?\d{4}(\s|\.|-)*\d{4}(?=\D|$)
"
gm

Description

no description available

Submitted by rafaelverger - 10 years ago