Regular Expressions 101

Community Patterns

107

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

autogpt-system-command-parse

0

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+)(.*?))(?=\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})
"
gsm

Description

Loading markdown...
Submitted by anonymous - 5 months ago