^start of line
rgbthe literal text rgb (case sensitive) a?optionally matches the literal a (9710 / 1418 / 6116) (case sensitive)
\(the literal ( (4010 / 508 / 2816)
\d+a digit, repeated at least once
\s*any whitespace character, repeated any number of times
,the literal , (4410 / 548 / 2C16)
\s*any whitespace character, repeated any number of times
\d+a digit, repeated at least once
\s*any whitespace character, repeated any number of times
,the literal , (4410 / 548 / 2C16)
\s*any whitespace character, repeated any number of times
\d+a digit, repeated at least once
\s*any whitespace character, repeated any number of times
Non-Capturing Group(?:,\s*([.\d]+))? ?repeats the group contents below at most once:
,the literal , (4410 / 548 / 2C16)
\s*any whitespace character, repeated any number of times
+matches at least one character from the set below:
.the literal . (4610 / 568 / 2E16)
\da digit
\)the literal ) (4110 / 518 / 2916)
$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