Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

1

Regular ExpressionOpen Workspace

r"
(?P<sender>sender\d+) postfix.[^-]*-(?P<ip>[^/,]*)/[^:]*: (?P<queue>[^ ]+): (from|to)=<(?P<login>[^@]*)@(?P<domain>[^\.]*)[^>]*>.*(?:status=)(?P<status>\w+)
"
g

Description
Created·2015-05-07 11:21
Type·Match
Flavor·Python

get ip identifier, queue name, email domain and status from postfix log

Submitted by kglod
Open Workspace