(?mi)applies the following effective flags to the remainder of the pattern: gumi m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters
^start of line
Addressthe literal text Address (case insensitive) \h+any horizontal whitespace character, repeated at least once
+matches at least one character from the set below:
\wa Unicode word character
the literal (3210 / 408 / 2016)
\h*any horizontal whitespace character, repeated any number of times
\Ra newline sequence
(?-i)applies the following effective flags to the remainder of the pattern: gum i modifier: -insensitive. Case-sensitive match
Group 2(\d+(?:\h+[[:upper:]]{2})?) \d+a Unicode decimal digit, repeated at least once
Non-Capturing Group(?:\h+[[:upper:]]{2})? ?repeats the group contents below at most once:
\h+any horizontal whitespace character, repeated at least once
Character Class[[:upper:]]{2} {2}matches exactly 2 characters from the set below:
[:upper:]an uppercase letter \p{Lu}
\h+any horizontal whitespace character, repeated at least once
+matches at least one character from the set below:
\wa Unicode word character
the literal (3210 / 408 / 2016)
g modifier: global. Finds all matches instead of stopping after the first
u modifier: unicode. Treats the pattern and subject as UTF-16