^start of line
\s*any whitespace character, repeated any number of times
\d+a digit, repeated at least once
\s+any whitespace character, repeated at least once
.*any character (except for line terminators), repeated any number of times
\Sany non-whitespace character
\s+any whitespace character, repeated at least once
\(?optionally matches the literal ( (4010 / 508 / 2816)
\$the literal $ (3610 / 448 / 2416)
+matches at least one character from the set below:
0-9one character from 0 (4810) to 9 (5710)
.the literal . (4610 / 568 / 2E16)
\)?optionally matches the literal ) (4110 / 518 / 2916)
\s*any whitespace character, repeated any number of times
$end of line
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string