Regular Expressions 101

Sponsors

Library entries

0
java

grade pattern

grade pattern for chinese school grade
Submitted by anonymous - 2 months ago
0
pcre2

BSDS regex example 1

Part of a training course
Submitted by Coppelia - 2 months ago
0
pcre2

Regex EKS Logs

This Just For Test
Submitted by JuniYadi - 2 months ago
0
pcre2

Initial Ceros and Grouping Characters

remove what title says
Submitted by anonymous - 2 months ago
0
pcre2

Date EN

Date EN
Submitted by anonymous - 2 months ago
0
pcre2

Date FR

Date FR
Submitted by anonymous - 2 months ago
0
pcre2

regex html tag

$subject = 'asdasdsdsa'; $pattern = '^(.+)?';
Submitted by anonymous - 2 months ago
0
pcre2

passw125

^(?=.\d)(?=.\W)(?=.*[a-zA-Z]).{6,8}$
Submitted by AS - 2 months ago
0
pcre2

sdsds@needemand.com

sdsds@needemand.com
Submitted by anonymous - 2 months ago
1
pcre2

Chinese Phone Number

匹配中国🇨🇳大陆手机号码
Submitted by Akko - 2 months 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