(?s)applies the following effective flags to the remainder of the pattern: gms s modifier: single line. Allows a dot to match line terminators
\(the literal ( (4010 / 508 / 2816)
Negated Character Class[^(]* *matches any number of characters outside the set below:
(the literal ( (4010 / 508 / 2816)
\(the literal ( (4010 / 508 / 2816)
.+any character, repeated at least once
\)the literal ) (4110 / 518 / 2916)
Negated Character Class[^)]* *matches any number of characters outside the set below:
)the literal ) (4110 / 518 / 2916)
\)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