Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-08-10 07:21
Flavor·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
Open regex in editor

Description

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

Submitted by anonymous