^start of string
localthe literal text local (case sensitive) \(the literal ( (4010 / 508 / 2816)
\s*any whitespace character, repeated any number of times
?repeats the group contents below at most once:
'the literal ' (3910 / 478 / 2716)
"the literal " (3410 / 428 / 2216)
\s*any whitespace character, repeated any number of times
Negated Character Class[^()]+? +?matches at least one character outside the set below:
(the literal ( (4010 / 508 / 2816)
)the literal ) (4110 / 518 / 2916)
\s*any whitespace character, repeated any number of times
\1?optionally matches the text saved by group 1
\s*any whitespace character, repeated any number of times
\)the literal ) (4110 / 518 / 2916)
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first