Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-09-06 21:50
Flavor·Python

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

Description

get all attempts to write brazilian phone numbers

Submitted by rafaelverger