(?ms)applies the following effective flags to the remainder of the pattern: gms m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
s modifier: single line. Allows a dot to match line terminators
.*any character, repeated any number of times
EventCodethe literal text EventCode (case sensitive) \=the literal = (6110 / 758 / 3D16)
4624the literal text 4624 4672the literal text 4672 4634the literal text 4634 .*any character, repeated any number of times
Securitythe literal text Security (case sensitive) \sany whitespace character
ID:the literal text ID: (case sensitive) \sany whitespace character
S-1-5-21-34345566-23432455-2001the literal text S-1-5-21-34345566-23432455-2001 (case sensitive) \s+any whitespace character, repeated at least once
Account Name:the literal text Account Name: (case sensitive) \sany whitespace character
_svc_abdthe literal text _svc_abd (case sensitive) g modifier: global. Finds all matches instead of stopping after the first