Regular Expressions 101

Community Patterns

QT field parser for Exim logs

0

Regular Expression
PCRE (PHP <7.3)

/
((((?<QT_days>\d+)d)?(?<QT_hours>\d+)h)?(?<QT_minutes>\d+)m)?(?<QT_seconds>\d+)s
/
g

Description

This will take the QT field from Exim mail routing logs and create QT_seconds, QT_minutes, QT_hours and QT_int

Submitted by Matthew Slowe <M.Slowe@kent.ac.uk> - 7 years ago