Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
((?:(?<=(?i:\btrabalho\b\s)|(?i:\bPIS\/PASEP\b\s)|(?i:\bPIS\b\s)|(?i:\bPASEP\b\s)))(\b(?:\b\d{3}\.?\s?\d{5}\.?\s?\d{2}\-?\s?\d{1}\b)(?:\s.+?(?:\b\d{7}\b)\s.+?(?:\b\d{4}\b))?\b))|(\b(?:\b\d{3}\.?\s?\d{5}\.?\s?\d{2}\-?\s?\d{1}\b)(?:\s.+?(?:\b\d{7}\b)\s.+?(?:\b\d{4}\b))\b)
"
g

Description

no description available

Submitted by anonymous - 4 years ago (Last modified 4 years ago)