\d{2,4}a digit, repeated between 2 and 4 times
-?optionally matches the literal - (4510 / 558 / 2D16)
\d{3,4}a digit, repeated between 3 and 4 times
-?optionally matches the literal - (4510 / 558 / 2D16)
\d{3,4}a digit, repeated between 3 and 4 times
#?optionally matches the literal # (3510 / 438 / 2316)
?repeats the group contents below at most once:
\d+a digit, repeated at least once
g modifier: global. Finds all matches instead of stopping after the first