^start of line
.*any character (except for line terminators), repeated any number of times
the literal (3210 / 408 / 2016)
Group 1((?:([12])|(3)|([45]))\d{4}) Non-Capturing Group(?:([12])|(3)|([45])) 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)
\d{4}a digit, repeated exactly 4 times
the literal (3210 / 408 / 2016)
.*any character (except for line terminators), repeated any number of times
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