Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?:\W|^)(alineas|alinea|alis\.?|ali\.?) (?:([a-z])|\"([a-z])\")(?:\W|$)
"
gm

Description

Regex que captura ocorrências "semelhantes" a :

'alinea a',
'alineas a',
'alinea "a"',
'ali. "a"',
'ali. a',
'ali. "a"',
'ali "a"',
'ali a'
Submitted by maffei2443 - 6 years ago