-the literal - (4510 / 558 / 2D16)
?the literal ? (6310 / 778 / 3F16)
|the literal | (12410 / 1748 / 7C16)
\Dany character that's not a digit
?the literal ? (6310 / 778 / 3F16)
\d{2}a digit, repeated exactly 2 times
\D?optionally matches any character that's not a digit
\d{2}a digit, repeated exactly 2 times
\D?optionally matches any character that's not a digit
\d{4}a digit, repeated exactly 4 times
\s??optionally matches any whitespace character
?matches at most one character from the set below:
-the literal - (4510 / 558 / 2D16)
|the literal | (12410 / 1748 / 7C16)
–the literal – (821110 / 200238 / 201316)
\s?optionally matches any whitespace character
\d{2}a digit, repeated exactly 2 times
\D?optionally matches any character that's not a digit
\d{2}a digit, repeated exactly 2 times
\D?optionally matches any character that's not a digit
\d{4}a digit, repeated exactly 4 times
g modifier: global. Finds all matches instead of stopping after the first