Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}),(\d{3})\sINFO\sSYSTEM:\s+Command\s+(\w+)\s+returned:\s+(.*?)(?=\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\Z)
"
gms

Description

auto-gpt- parse system cmd

Submitted by anonymous - 2 years ago