Regular Expressions 101

Apache log regex

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
^(\S+) (\S+) (\S+) \[[\w:\/]+\s[+-]\d{4}\] (\S+) (\S+) (\S+)\" (\d{3}) [(\d+)|-]
/

Description

Regex pattern for Apache log

Submitted by Sujan Thapa