^start of line
Negated Character Class[^][\n]* *matches any number of characters outside the set below:
]the literal ] (9310 / 1358 / 5D16)
[the literal [ (9110 / 1338 / 5B16)
\na line-feed (newline) character (ASCII 10)
?repeats the group contents below at most once:
\[the literal [ (9110 / 1338 / 5B16)
\d*a Unicode decimal digit, repeated any number of times
\]the literal ] (9310 / 1358 / 5D16)
:the literal : (5810 / 728 / 3A16)
.*any Unicode character (except for line terminators), repeated any number of times
\ba Unicode word boundary
Non-Capturing Group(?:(?P<logError>EMERG|EMERGENCY|ERR(?:OR)?|CRIT(?:TICAL)?|ALERT)|(?P<logWarning>WARN(?:ING)?)|(?P<logNotice>NOTICE)|\[(?P<logNormal>[^\]\n]*)) 1st Alternative(?P<logError>EMERG|EMERGENCY|ERR(?:OR)?|CRIT(?:TICAL)?|ALERT) Group logError(?P<logError>EMERG|EMERGENCY|ERR(?:OR)?|CRIT(?:TICAL)?|ALERT) EMERGthe literal text EMERG (case sensitive) EMERGENCYthe literal text EMERGENCY (case sensitive) 3rd AlternativeERR(?:OR)? ERRthe literal text ERR (case sensitive) Non-Capturing Group(?:OR)? ?repeats the group contents below at most once:
ORthe literal text OR (case sensitive) 4th AlternativeCRIT(?:TICAL)? CRITthe literal text CRIT (case sensitive) Non-Capturing Group(?:TICAL)? ?repeats the group contents below at most once:
TICALthe literal text TICAL (case sensitive) ALERTthe literal text ALERT (case sensitive) 2nd Alternative(?P<logWarning>WARN(?:ING)?) Group logWarning(?P<logWarning>WARN(?:ING)?) WARNthe literal text WARN (case sensitive) Non-Capturing Group(?:ING)? ?repeats the group contents below at most once:
INGthe literal text ING (case sensitive) 3rd Alternative(?P<logNotice>NOTICE) Group logNotice(?P<logNotice>NOTICE) NOTICEthe literal text NOTICE (case sensitive) 4th Alternative\[(?P<logNormal>[^\]\n]*) \[the literal [ (9110 / 1338 / 5B16)
Group logNormal(?P<logNormal>[^\]\n]*) Negated Character Class[^\]\n]* *matches any number of characters outside the set below:
\]the literal ] (9310 / 1358 / 5D16)
\na line-feed (newline) character (ASCII 10)
]the literal ] (9310 / 1358 / 5D16)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string