Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^([^\s]+) ([^\s]+) ([^\s]+) \[([\w:/]+\s[+\-]\d{4})\] "(\S+) /.*() ([^\\"]+)" (\d{3}) (\S+)
"
g

Description

Apache Web server log file format following the standard

Submitted by Basil Tungekar - 10 years ago