Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-10-17 13:59
Flavor·PCRE (Legacy)

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

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>