Regular Expressions 101

Library entries

LogExpert Regex Columnizer

Vote

1

Regular Expression
pcre

/
^(?:(?'Date'\d{4}-\d{1,2}-\d{1,2})\s+(?'Time'\d{2}:\d{2}:\d{2}),?\d{3}\s+(?'LogLevel'INFO|DEBUG|WARN|ERROR|FATAL)\s+(?'PID'\d+)\s+(?'Logger'[a-z.]+)\s+-?\s+)?(?'Message'.+)$
/
gim

Description

Loading markdown...
Submitted by Oddbjørn Haaland, Sander Struijk - 7 years ago