\ba Unicode word boundary
\d{1,2}a Unicode decimal digit, repeated between 1 and 2 times
Non-Capturing Group(?:\D+\d{1,2})? ?repeats the group contents below at most once:
\D+any character that is not a Unicode decimal digit, repeated at least once
\d{1,2}a Unicode decimal digit, repeated between 1 and 2 times
\D+any character that is not a Unicode decimal digit, repeated at least once
Non-Capturing Group(?:year|month) yearthe literal text year (case sensitive) monththe literal text month (case sensitive) s?optionally matches the literal s (11510 / 1638 / 7316) (case sensitive)
\ba Unicode word boundary
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