Regular Expressions 101

Sponsors

Library entries

0
python

Ternary Operator replacement with OR

no description available
Submitted by anonymous - 2 years ago
0
python

Fecha

no description available
Submitted by anonymous - 2 years ago
0
python

separador de vogais e espaços

no description available
Submitted by anonymous - 2 years ago
0
python

regex for phone (US & CAN)

no description available
Submitted by anonymous - 2 years ago
0
python

overly complicated postal code regex

no description available
Submitted by anonymous - 2 years ago
0
python

Comma separated numbers

no description available
Submitted by anonymous - 2 years ago
0
python

date time

1/Jul/2013 03:27:12ss
Submitted by himel - 2 years ago
0
python

Tag

no description available
Submitted by anonymous - 2 years ago
0
python

ecfr_guid

no description available
Submitted by anonymous - 2 years ago
0
python

Arlamas externas Ericsson

no description available
Submitted by anonymous - 2 years ago
0
python

Nokia_inventario

no description available
Submitted by anonymous - 2 years ago
0
golang

match ***

no description available
Submitted by anonymous - 2 years ago
0
golang

https://twitter.com/MGWVc

[](url)
Submitted by anonymous - 2 years ago
0
python

ss skmem line parser

no description available
Submitted by anonymous - 2 years ago

NGINX Error Log Format

Vote

0

Regular Expression
python

"
^(?P<timestamp>\d{4}/\d{2}/\d{2}\ \d{2}:\d{2}:\d{2}) \ \[(?P<severity>emerg|alert|crit|error|warn|notice|info)\] \ (?P<process_id>\d+) \#(?P<thread_id>\d+): \ \*(?P<connection_id>\d+) \ (?P<error>.+?) (?:\ while\ (?P<context>.+?))? ,\ client:\ (?P<client_ip>\d+\.\d+\.\d+\.\d+) ,\ server:\ (?P<server>.+?) (?:,\ request:\ \"(?P<request_method>[A-Z]+?) \ (?P<request_path>\/.+?) \ (?P<request_protocol>.+?)\")? (?:,\ upstream:\ \"(?P<upstream>.+?)\")? (?:,\ host:\ \"(?P<host>.+?)\")? (?:,\ referrer:\ \"(?P<referrer>.+?)\")? $
"
xs

Description

Loading markdown...
Submitted by anonymous - 3 years ago