Regular Expressions 101

Sponsors

Library entries

0
pcre

Spotify ID regex

Spotify ID regex
Submitted by anonymous - 6 hours ago
0
javascript

https

https
Submitted by anonymous - a day ago
0
pcre

helix word motion

helix word motion
Submitted by anonymous - 3 days ago
0
pcre

Kafka topic name regex

Kafka topic name regex
Submitted by anonymous - 4 days ago
1
javascript

Regex for url

Regex for url
Submitted by anonymous - 5 days ago
1
javascript

RegEX IBAN SEPA with spaces

RegEX IBAN SEPA with spaces
Submitted by Karim MB - 8 days ago
1
javascript

js获取url上的参数

/(+)=(+)/gm
Submitted by anonymous - 9 days ago
1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - 13 days ago
0
javascript

cuts amazon url

with a url of aws cuts the url
Submitted by d3w3r - 17 days ago
0
javascript

regex text inside html tag

regex
Submitted by anonymous - 19 days ago
0
pcre

https://regex101.com/r/VrZHR8/1

https://regex101.com/r/VrZHR8/1
Submitted by anonymous - 19 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 - 2 months ago