Re for Apache log file format

Denis McMahon denismfmcmahon at gmail.com
Tue Oct 8 11:48:38 EDT 2013


On Mon, 07 Oct 2013 23:33:31 -0700, Sam Giraffe wrote:

> I am trying to split up the re pattern for Apache log file format and
> seem to be having some trouble in getting Python to understand
> multi-line pattern:

Aiui apache log format uses space as delimiter, encapsulates strings in 
'"' characters, and uses '-' as an empty field.

So I think every element should match: (\S+|"[^"]+"|-) and there should 
be \s+ between elements.

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list