Regular Expressions 101

Apache with " in referer

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^(\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