Regular Expressions 101

Community Patterns

Apache with " in referer

1

Regular Expression
PCRE (PHP <7.3)

/
^(\S*).*\[(.*)\]\s"(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s"\\?"?([^"]*)\\?"?"$
/

Description

Apache combined log parser with/without escape " in the referer.

Submitted by Dominique - 9 years ago