Regular Expressions 101

Community Patterns

1

Kafka loki parser

Golang
Kafka loki parser
Submitted by anonymous - 4 months ago
0

Get digits

Golang
Trying to get digits
Submitted by Arthur Silva - 10 months ago
0

walter1976LastClean

Golang
walter1976LastClean
Submitted by anonymous - 10 months ago
0

pxc plcnext

Golang
plcnext version strings
Submitted by anonymous - a year ago
0

domain

Golang
ss
Submitted by sssssss - a year ago
0

REACT SDK V3

Golang
React SDK V3
Submitted by anonymous - a year ago

Nginx parse error log msg

0

Regular Expression
Python

r"
^(?P<timestamp>.{19})\ \[(?P<severity>\w{4,6})\] \ \d+\#\d+:\ (\*\d+\ )? (?P<err_msg> (?:\"\S+\"\sis\snot\s)? (?P<err_type>\w+)[\s(] (?:requests,\ excess:\ (?P<err_rate>\d+\.\d+) \ by\ zone\ \"(?P<err_zone>\S+)\" |.+?) ) (?: ,\ client:\ (?P<remote_addr>\d+\.\d+\.\d+\.\d+) ,\ server:\ (?P<server>[^,\a]+) (?:,\ request:\ \"(?P<method>[A-Z]{3,4}?) \ (?P<uri>\/\S*?)(?P<uri_query>\?\S+)? \ (?P<protocol>\S+)\" )? (?:,\ upstream:\ \"(?P<upstream>.+?)\")? (?:,\ host:\ \"(?P<req_host>\S+)\")? (?:,\ referrer:\ \"(?P<referrer>\S+)\")? |) $
"
xs

Description

Loading markdown...
Submitted by diepes - 8 months ago