Regular Expressions 101

Library entries

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 - 9 months ago