<the literal < (6010 / 748 / 3C16)
Group name1(?P<name1>\w*) \w*a Unicode word character, repeated any number of times
Group name2(?P<name2>h[1-5]) hthe literal h (10410 / 1508 / 6816) (case sensitive)
1-5one character from 1 (4910) to 5 (5310)
>the literal > (6210 / 768 / 3E16)
.*any Unicode character (except for line terminators), repeated any number of times
(?P=name2)the text saved by group name2
(?P=name1)the text saved by group name1
>the literal > (6210 / 768 / 3E16)
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