Regular Expressions 101

Library entries

Spring boot log parser

Vote

1

Regular Expression
pcre

/
^(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}.\d{3})\s+(?<level>[^\s]+)\s+(?<pid>\d+).*?\[\s+(?<thread>.*)\]\s+(?<class>.*)\s+:\s+(?<message>.*)
/

Description

Loading markdown...
Submitted by geowarin - 6 years ago