Regular Expressions 101

Sponsors

Library entries

0
pcre

java: comments

no description available
Submitted by anonymous - 3 years ago
0
javascript

email with utf8

no description available
Submitted by anonymous - 3 years ago
0
pcre

Weekend Regex - Second properties

no description available
Submitted by anonymous - 3 years ago
0
pcre

Weekend Regex - Second properties

no description available
Submitted by anonymous - 3 years ago
0
javascript

IPv4

no description available
Submitted by anonymous - 3 years ago
0
javascript

Date dd.mm.1900-2039

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

gcodetest1

no description available
Submitted by anonymous - 3 years ago
0
javascript

commitizen

cz regex
Submitted by anonymous - 3 years ago
0
python

nytimes project

str = str[:-1] split on "/" if "/" in str
Submitted by anonymous - 3 years ago
0
pcre

???

no description available
Submitted by anonymous - 3 years ago
0
pcre

IMEI Single Group

no description available
Submitted by anonymous - 3 years ago
0
pcre

Drupal-like token matching

no description available
Submitted by anonymous - 3 years ago
0
javascript

get image tag from string

no description available
Submitted by anonymous - 3 years ago
0
pcre

currencies / workbox / routing

no description available
Submitted by anonymous - 3 years ago
0
javascript

get src from img tag

no description available
Submitted by anonymous - 3 years ago
0
pcre

preamp placement regex

no description available
Submitted by anonymous - 3 years ago
0
javascript

JS comments remove

All types
Submitted by piterden - 9 months 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