Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?<date>\d{4}-\d{1,2}-\d{1,2})T(?<time>\d{1,2}:\d{1,2}:\d{1,2})\+\d{1,2}:\d{1,2}\s(?<level>\w+\s\(\d\)):\s(?<msg>.*$)
/
gm

Description

This is for the windows application LogExpert with the RegexColumnizer extension. This will split log entries into columns ( Date | Time | LogLvl | LogMsg )

Submitted by Chris Soper - Howell Marketing Services - 9 years ago