^start of string
\(?optionally matches the literal ( (4010 / 508 / 2816)
\d{2}a digit, repeated exactly 2 times
\)?optionally matches the literal ) (4110 / 518 / 2916)
?optionally matches the literal (3210 / 408 / 2016)
9?optionally matches the literal 9 (5710 / 718 / 3916)
\d{4,5}a digit, repeated between 4 and 5 times
-?optionally matches the literal - (4510 / 558 / 2D16)
\d{4}a digit, repeated exactly 4 times
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first