Regular Expressions 101

Community Patterns

Start of log message

0

Regular Expression
PCRE (PHP <7.3)

/
^(([0-9]{4}\-[0-9]{2}\-[0-9]{2}|[0-9]{1,2}([.\/\-])[0-9]{1,2}\3[0-9]{4})[\sT])?[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}\b
/
gm

Description

The expresiion detects start of multilane log message.

Submitted by anonymous - 4 years ago