Non-Capturing Group(?:SERVICE_NAME|SID) 1st AlternativeSERVICE_NAME SERVICE_NAMEthe literal text SERVICE_NAME (case sensitive) SIDthe literal text SID (case sensitive) \s?optionally matches a Unicode whitespace character
=the literal = (6110 / 758 / 3D16)
\s?optionally matches a Unicode whitespace character
.+?any Unicode character (except for line terminators), repeated at least once
\)the literal ) (4110 / 518 / 2916)
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