Regular Expressions 101

Sponsors

Library entries

2
pcre2

Delete hour range

Select duplicate a.m. - p.m range
Submitted by profeivan - 3 months ago
3
pcre2

CloudFlare

Cloud Flare
Submitted by anonymous - a year ago
3
pcre2

Email

email format control
Submitted by ahmetbarut - a year ago
3
pcre2

example

example
Submitted by anonymous - 10 months ago

web log entry

Vote

2

Regular Expression
pcre2

/
(?P<host>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})(\s-\s)(?P<user_name>[\w-]*)(\s\[)(?P<time>\w*\/\w*\/\d{1,4}:\d{1,2}:\d{1,2}:\d{1,2}\s-\d{1,4})(\]\s\")(?P<request>.*)(")
/
gm

Description

Loading markdown...
Submitted by PepeRG - a year ago