+repeats the group contents below at least once:
Comment: Non capturing group 1
\Gstart of current search
Comment: Matches where the regex engine stops in the previous step
\w+any word character, repeated at least once
Comment: capture group 1: a regex word of 1+ chars
\h*any horizontal whitespace character, repeated any number of times
Comment: zero or more horizontal spaces (space, tabs)
Non-Capturing Group(?: # Non capturing group 2
=\h* # literal '=' follower by zero or more hspaces
(\w+) # capture group 2: a regex word of 1+ chars
)? ?repeats the group contents below at most once:
Comment: Non capturing group 2
=the literal text =
\h*any horizontal whitespace character, repeated any number of times
Comment: literal '=' follower by zero or more hspaces
\w+any word character, repeated at least once
Comment: capture group 2: a regex word of 1+ chars
Comment: make the non capturing group 2 optional