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