Regular Expressions 101

Library entries

Brazilian phone numbers

Vote

1

Regular Expression
python

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

Description

Loading markdown...
Submitted by rafaelverger - 7 years ago