Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
^(?s)(?P<time>\S+?) (?P<stream>stdout|stderr) (?P<flags>\S+?) (?P<content>.*)$
`
gms

Description

The CRI expr will match and parse log lines of this format:

2019-01-01T01:00:00.000000001Z stderr P some log message
Submitted by east4ming - 3 years ago