Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

0

Regular Expression
Python

r"
to=<(?P<email>\S+)>,\srelay=(?!10\.10\.10\.)(?P<relay>\S+),.+dsn=(?P<dsn>\d+\.\d+\.\d+),\sstatus=(?!sent)(?P<status>\w)\w+\s\((?:host\s\S+\[\S+\]\ssaid:\s)?(?P<code>\d{3})?
"
g

Description

Full regex for failed sendings

Submitted by anonymous - 8 years ago