Regular Expressions 101

Community Patterns

0

APA Citation v1

Java 8
Parse APA v7 citations
Submitted by mathias v - 6 months ago
0

Java RegEx Group Test

Java 8
Test
Submitted by anonymous - 6 months ago
0

scriptpak №1

Python
scriptpak №1
Submitted by anonymous - 5 months ago
0

NLP_Regex

Python
Learning Regex for NLP
Submitted by anonymous - 5 months ago
0

comma separated ESPEC

Python
ESPEC
Submitted by Ian Cole - 5 months 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 - 5 months ago