^start of line
\w+a Unicode word character, repeated at least once
\s?optionally matches a Unicode whitespace character
=the literal = (6110 / 758 / 3D16)
\s?optionally matches a Unicode whitespace character
?matches at most one character from the set below:
'the literal ' (3910 / 478 / 2716)
\"the literal " (3410 / 428 / 2216)
\S*any character that is not Unicode whitespace, repeated any number of times
\2the text saved by group 2
$end of line
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