Regular Expressions 101

Library entries

Default Nginx Logs

Vote

0

Regular Expression
python

'
^(?P<ip>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}) - - \[(?P<date>.*)\] "(?P<request>.*?)" (?P<status>\d*) (?P<size>\d*) "(?P<referer>.*?)" "(?P<user_agent>.*?)".*$
'
gm

Description

Loading markdown...
Submitted by anonymous - 4 years ago