<athe literal text <a (case sensitive) Non-Capturing Group(?:\s+name=".*?")? ?repeats the group contents below at most once:
\s+any whitespace character, repeated at least once
name="the literal text name=" (case sensitive) .*?any character (except for line terminators), repeated any number of times
"the literal " (3410 / 428 / 2216)
\s+any whitespace character, repeated at least once
href=the literal text href= (case sensitive) .*?any character (except for line terminators), repeated any number of times
#the literal # (3510 / 438 / 2316)
.*?any character (except for line terminators), repeated any number of times
>the literal > (6210 / 768 / 3E16)
.*?any character (except for line terminators), repeated any number of times
<the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
a>the literal text a> (case sensitive) g modifier: global. Finds all matches instead of stopping after the first