+repeats the group contents below at least once:
,?optionally matches the literal , (4410 / 548 / 2C16)
\s*any whitespace character, repeated any number of times
-?optionally matches the literal - (4510 / 558 / 2D16)
\d*a digit, repeated any number of times
\.?optionally matches the literal . (4610 / 568 / 2E16)
\d+a digit, repeated at least once
Group 4(px|in|px|cm|mm|pt|pc|em|ex|ch|rem|deg|rad|grad|turn)? ?repeats the group contents below at most once:
pxthe literal text px (case insensitive) inthe literal text in (case insensitive) pxthe literal text px (case insensitive) cmthe literal text cm (case insensitive) mmthe literal text mm (case insensitive) ptthe literal text pt (case insensitive) pcthe literal text pc (case insensitive) emthe literal text em (case insensitive) exthe literal text ex (case insensitive) chthe literal text ch (case insensitive) remthe literal text rem (case insensitive) degthe literal text deg (case insensitive) radthe literal text rad (case insensitive) gradthe literal text grad (case insensitive) turnthe literal text turn (case insensitive)