You seem to have figured out most of it. The =
, , and
"
all literally match those characters. The ()
capture a part of the matched string and make it available as $1
. The part inside the parenthesis matches a non-digit character (\D
), followed by zero or more (*?
) non-newline characters (.
) until the "
. *
would also match zero or more times, but prefers to match more characters so would end up matching until the last "
in the string instead of the next one, as *?
does.
All of this is documented in perlre.