Regular Expressions 101

Community Patterns

Regex per parsing log netmonitor

0

Regular Expression
PCRE (PHP <7.3)

/
\[(?P<timestamp>[\w-]+\s[\w:]+[+\.]\d+)\] \[(?P<level>\S+)\]\:(?P<bho>\s+)\t\{(?P<id>\d+)\} \[(?P<telefono>\S+)\] \[(?P<ip>\S+)\] (?P<node>\w*)\s*\[(?P<path>\S+)?\s\]\[(?P<bho2>\s\d+\s)\]\[\s(?P<id2>\d+\s)\]
/
g

Description

no description available

Submitted by anonymous - 4 years ago