Regular Expressions 101

Library entries

artifactory-request

Vote

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

Loading markdown...
Submitted by Scott Barnes - 8 months ago