Regular Expressions 101

Sponsors

Library entries

0
javascript

href parse v2

matches href, title, innerhtml
Submitted by chrysls - 7 years ago
0
pcre

genesis data (longitude, latitude)

no description available
Submitted by frost - 7 years ago
0
javascript

text validation

allows white spaces, -, Umlaut and ß
Submitted by anonymous - 7 years ago
0
pcre

PowerShell + Regex to match and output to csv

no description available
Submitted by Jan - 7 years ago
0
pcre

Format money

no description available
Submitted by Jamie robertson - 7 years ago
0
pcre

Date with format YYYY-MM-DD

no description available
Submitted by Kazadri - 7 years ago
0
pcre

detect if input is valid domain name

no description available
Submitted by nnnn20430 - 7 years 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 - 2 months ago