Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^([A-Z][a-z]{2}\s\d\s\d\d:[\d]{2}:[\d]{2})\s([\w]+[\.][\w]+)\s([\w|=]+)(\[\d+\]):\s.+[\(|\s|\\|\"]
"
gm

Description

used to pull Date, time and PID from linux log files

Submitted by anonymous - 4 years ago