\n?optionally matches a line-feed (newline) character (ASCII 10)
\d*?a digit, repeated any number of times
\n?optionally matches a line-feed (newline) character (ASCII 10)
^start of line
.*any character (except for line terminators), repeated any number of times
Character Class[012345]{2} {2}matches exactly 2 characters from the set below:
0the literal 0 (4810 / 608 / 3016)
1the literal 1 (4910 / 618 / 3116)
2the literal 2 (5010 / 628 / 3216)
3the literal 3 (5110 / 638 / 3316)
4the literal 4 (5210 / 648 / 3416)
5the literal 5 (5310 / 658 / 3516)
:the literal : (5810 / 728 / 3A16)
.*any character (except for line terminators), repeated any number of times
$end of line
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
g modifier: global. Finds all matches instead of stopping after the first