Regular Expressions 101

Sponsors

Library entries

0
javascript

MyRegex

Parse
Submitted by anonymous - 2 days ago
0
javascript

import syntax for regex with grouping

HAYO!
Submitted by CreeJee - 2 days ago
0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - 4 days ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 4 days ago
0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 9 days ago
0
javascript

sql inj

as
Submitted by anonymous - 13 days ago
0
javascript

Currency

Currency
Submitted by jerryd - 16 days ago

extended nginx log format

Vote

0

Regular Expression
pcre

/
(?:-|(?P<real_ip>[\-\da-f.:, ]+)) - (?<remote_user>\S+) \[(?<timestamp>[^\]]+)\]\s+"(?:\-|(?<request>\w+) (?<request_uri>[^ \?]+)(?:\?(?<request_uri_query>[^ ]*))? (?<request_version>[\w\/\.]+))"\s+(?P<status>[1-9]\d{2})\s+(?P<body_bytes_sent>\d+)\s+"(?<http_referer>[^"]+)"\s+"(?<http_user_agent>[^"]+)"\s+"(?P<remote_ip>[\da-f.:]+)" (?:\-|(?P<upstream_response_time>\d+(?:.\d+)?))\s+(?P<request_time>\d+(?:.\d+)?) (?P<pipe>[\.p])
/
gm

Description

Loading markdown...
Submitted by Pei-Tang Huang - 4 months ago