(?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
EventCodethe literal text EventCode (case sensitive) \=the literal = (6110 / 758 / 3D16)
4769the literal text 4769 .*any character, repeated any number of times
TaskCategorythe literal text TaskCategory (case sensitive) \=the literal = (6110 / 758 / 3D16)
\w+any word character, repeated at least once
\sany whitespace character
\w+any word character, repeated at least once
\sany whitespace character
\w+any word character, repeated at least once
\sany whitespace character
\w+any word character, repeated at least once
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string