Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-02-22 15:32
Flavor·Python

r"
^(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\d\d\d\d-\d\d:\d\d) (.*?) (.*?): (.*)$
"
gm
Open regex in editor

Description

Takes a syslog with the basic pattern: date-&-time server process: message

Submitted by rcuza