Build, test, and debug regular expressions
Matches valid CSS rgb() and rgba() color function strings such as rgb(255, 0, 0), rgb(100% 50% 25%), or rgba(10, 20, 30, 0.5). Uses named capture groups (r, g, b, a, unit, separator) with backreferences to enforce consistent separators (space or comma) and units (% or plain numbers) across all color channels. The optional alpha channel supports decimal values and relies on a lookbehind tied to comma-separated syntax. Useful for validating color inputs in forms or parsing CSS.