Regular Expressions 101

Community Patterns

SC Log Line Explanation

0

Regular Expression
Python

r"
(DEBUG|INFO|WARNING|ERROR):\s(\d{2}/.+-\d{4}) (\[\w+\])\s([^:]+):\s(.+) by (.+)\s(\w+@\w+\..+)
"

Description

Matches elements of a log entry from SC.

Submitted by G.E. Hatt Jr - 3 years ago