Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\[(?<threadinfo>(?<threadtype>\w+)\s*-\s*(?<thread>\d+))\]\s*:\s*(?<timestamp>\d{1,2}\/\d{1,2}\/\d{4}\s*\d{1,2}:\d{1,2}:\d{1,2}[,\.]\d{1,3})\s*\|\s*(?<level>\w+)\s*\|\s*(?<body>.*)
/
gm

Description

no description available

Submitted by anonymous - 4 years ago