Regular Expressions 101

Community Patterns

1...34567...585

vert-cata

0

Regular Expression
Python

r"
(?P<timestamp>\w+\-\w+\-\w+\s\w+\:\w+\:\w+\.\w+)\s(?P<type>\w+)\s\[(?P<details>[\w\s\-\.]+)\]\s(?P<body>[\S\s]*?(?=\w+\-\w+\-\w+\s|\Z))
"
gm

Description

log

Submitted by anonymous - 2 years ago