Regular Expressions 101

Sponsors

Library entries

0
pcre2

TXN ID

VIL ID
Submitted by anonymous - 4 hours ago
0
pcre2

Slurs

Not made with ill intentions.
Submitted by anonymous - a day ago
0
pcre2

正则提取

ss
Submitted by sss - 2 days ago
0
pcre2

e-mail regex

Validates an email address
Submitted by anonymous - 2 days ago
0
pcre

inefficient int/float(exponent)

match a single number
Submitted by anonymous - 3 days ago
0
pcre2

id

getid
Submitted by anonymous - 3 days ago
0
pcre2

id

getid
Submitted by anonymous - 3 days ago
0
pcre2

aff url normalize

conevrt url
Submitted by anonymous - 4 days ago
0
pcre

amazIng regex

super
Submitted by anonymous - 4 days ago
0
golang

super regex

Get every word ending with dot using Regex/VBA
Submitted by anonymous - 4 days ago
0
pcre2

Date time ISO_8601 Pattern

credits to Sayooj V R
Submitted by anonymous - 5 days ago
0
pcre2

routes

routes
Submitted by anonymous - 5 days ago
0
pcre

Only if before

Only if needle is before target
Submitted by anonymous - 6 days ago
0
pcre2

GS1-128 and RegEx

Parse the 3 groups of a GS1-128 Barcode
Submitted by Mike D - 7 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