Am 28.07.2017 um 22:30 schrieb Rejaine Monteiro:
$logtime_pat = '(\w\w\w\w-\d\-\dT+d:\d+\:\d+\.\d\.\w\w\w\w\w\w\-d\:\d)';
I'm not sure I understand all components, but the RegEx for logtime has
several flaws.
Try:
(\d+-\d+-\d+T\d+:\d+\:\d+\.\d+-\d+\:\d+)
For $pat, at least this matches:
mailserver1 perdition\.imaps\[\d+\]: Auth:
\d+\.\d+\.\d+\.\d+:\d+\-\>\d+\.\d+\.\d+\.\d+:\d+ client-secure=plaintext
authorisation_id=NONE authentication_id=\"\S+\" server=\"\S+\"
protocol=\S+ server-secure=plaintext status=\"ok\"
Hope this helps
Matthias