Regular Expressions 101

Library entries

apache log parser

Vote

1

Regular Expression
python

"
(?P<remote>[\.0-9]+) (?P<identity>[\w\d\-]+) (?P<user>[\w\d\-]+) \[(?P<date>.*?)\] "(?P<method>\w+) (?P<url>.*?) (?P<protocol>[\w\/\.\d]+)" (?P<status>\d+) (?P<bytes>[\d-]+) "(?P<referer>.*?)" "(?P<agent>.*?)"
"

Description

Loading markdown...
Submitted by Claudio Borges - 6 years ago