Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
^<[0-9]+>(?:[A-Z][a-z]{2}\s+[0-9]{1,2}\s[0-9]{1,2}:[0-9]{2}:[0-9]{2})\s+(?:[^\s]+)\s+(?:[^\s]+)\s+(?P<Timestamp>[0-9]+)\|(?P<TraceID>[^|]+)\|(?P<Unknown>[^|]+)\|(?P<RemoteAddress>[^|]+)\|(?P<Username>[^|\s]+)\|(?P<RequestMethod>[GETPOSUDLACH]+)\|(?P<RequestURL>[^|]+)\|(?P<RequestUserAgent>[^|]+)\|(?P<ResponseStatusCode>[0-9]{3,})\|(?P<RequestDuration>[0-9]+)$
`
mg

Description

no description available

Submitted by Scott Barnes - 4 years ago