mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
regex formatting
This commit is contained in:
@ -118,8 +118,10 @@ def parse(
|
|||||||
# inspired by https://gist.github.com/miticojo/b16bb13e78572c2d2fac82d9516d5c32
|
# inspired by https://gist.github.com/miticojo/b16bb13e78572c2d2fac82d9516d5c32
|
||||||
syslog = re.compile(r'''
|
syslog = re.compile(r'''
|
||||||
(?P<priority><\d{1,3}>)?
|
(?P<priority><\d{1,3}>)?
|
||||||
|
(?P<header>
|
||||||
(?P<date>[A-Z][a-z][a-z]\s{1,2}\d{1,2}\s\d{2}?:\d{2}:\d{2})?\s
|
(?P<date>[A-Z][a-z][a-z]\s{1,2}\d{1,2}\s\d{2}?:\d{2}:\d{2})?\s
|
||||||
(?P<host>[\w][\w\d\.:@-]*)?\s
|
(?P<host>[\w][\w\d\.:@-]*)?\s
|
||||||
|
)
|
||||||
(?P<msg>
|
(?P<msg>
|
||||||
(?P<tag>\w+)?
|
(?P<tag>\w+)?
|
||||||
(?P<content>.*)
|
(?P<content>.*)
|
||||||
|
Reference in New Issue
Block a user