*repeats the group contents below any number of times:
\s+any whitespace character, repeated at least once
\$?optionally matches the literal $ (3610 / 448 / 2416)
\s*any whitespace character, repeated any number of times
\d+a digit, repeated at least once
Non-Capturing Group(?:,\d+)? ?repeats the group contents below at most once:
,the literal , (4410 / 548 / 2C16)
\d+a digit, repeated at least once