\(the literal ( (4010 / 508 / 2816)
\d{2}a digit, repeated exactly 2 times
\)the literal ) (4110 / 518 / 2916)
\sany whitespace character
Group 1(\d{4}-\d{5}|\d{5}-\d{4}|\d{4}-\d{4}) 1st Alternative\d{4}-\d{5} \d{4}a digit, repeated exactly 4 times
-the literal - (4510 / 558 / 2D16)
\d{5}a digit, repeated exactly 5 times
2nd Alternative\d{5}-\d{4} \d{5}a digit, repeated exactly 5 times
-the literal - (4510 / 558 / 2D16)
\d{4}a digit, repeated exactly 4 times
3rd Alternative\d{4}-\d{4} \d{4}a digit, repeated exactly 4 times
-the literal - (4510 / 558 / 2D16)
\d{4}a digit, repeated exactly 4 times
g modifier: global. Finds all matches instead of stopping after the first