Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

A javascript regex for parsing an S3 log line.

Submitted by Matt Ingenthron <ingenthr@cep.net> - 10 years ago