Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-04-04 07:46
Updated·2024-04-04 08:51
Flavor·PCRE2 (PHP)

/
Executed\s+as\s+user:\s+[\w\\]+\.|\[SQLSTATE \d+\] \(\w+ \d+\)\s*\.?
/
gm
Open regex in editor

Description

Converts the outcome from an SQL Agent Log (one liner) to multi lines, for easy read

Submitted by Paw Jershauge