Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2})
"
gm

Description

Match Brazilian documents

Submitted by Bacco - 3 years ago