Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

~
^ [0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[\w+\] [0-9]+#[0-9]+:( \*[0-9]+)? (.*?)(( while( \\w+)+)?|, client: [^,]*|, server: [^,]*|, request: \"\w+ [^\"]* HTTP/[^\"]+\"|, host: \"[^\"]*\"|, upstream: \"[^\"]*\"|, referrer: \"[^\"]*\"|, subrequest: \"[^\"]*\"|, ctx: \'[^\']*\')*$
~
gm

Description

no description available

Submitted by anonymous - 5 years ago