Regular Expressions 101

Library entries

vIDM With Brackets

Vote

0

Regular Expression
python

"
^(?P<log_time>[\dT\-\:]+)\s+(?P<log_host>[\w\-]+)(?:\.[\w\-\.]*\s+|\s+)(?P<log_type>\w+)\s+(?:(?=\()(?P<log_module>[^\)]+\))\s+|)(?:(?=\[)(?P<log_tenant>[^ ]+)\s+|)(?P<log_message>.+)
"
gm

Description

Loading markdown...
Submitted by anonymous - 4 years ago