Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(to|from)=?<([a-zA-Z0-9_.-]+)\@([A-Za-z_-]+)\.(([A-Za-z]{3})|([A-Za-z]{3})\.([A-Za-z]{2}?))>
"
gm

Description

Log de postfix, localiziando e-mail (from e to).

Submitted by Danilo Kishi - 8 years ago