Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocs
Design
#rgb
#color
#css
#design

RGB Color

Matches an RGB color value in the format rgb(R, G, B) where each channel is 0–255.

CSS value parsingDesign tool inputColor conversion
/
/
Test String
3 matches
rr'r' — literal character
gg'g' — literal character
bb'b' — literal character
\(\(\( — escaped character '('
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
(…)Group #1Capturing group — captures matched text for reuse or extraction
22'2' — literal character
55'5' — literal character
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
22'2' — literal character
[…]Character class […]Matches any single character listed in this set
\ddigit\d — digit (0–9)
||| — alternation: matches expression on left OR right
1?1'1' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
\ddigit\d — digit (0–9)
\d?digit\d — digit (0–9) — repeated zero or one time (optional) · ? — zero or one time (optional)
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
,,',' — literal character
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
(…)Group #2Capturing group — captures matched text for reuse or extraction
22'2' — literal character
55'5' — literal character
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
22'2' — literal character
[…]Character class […]Matches any single character listed in this set
\ddigit\d — digit (0–9)
||| — alternation: matches expression on left OR right
1?1'1' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
\ddigit\d — digit (0–9)
\d?digit\d — digit (0–9) — repeated zero or one time (optional) · ? — zero or one time (optional)
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
,,',' — literal character
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
(…)Group #3Capturing group — captures matched text for reuse or extraction
22'2' — literal character
55'5' — literal character
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
22'2' — literal character
[…]Character class […]Matches any single character listed in this set
\ddigit\d — digit (0–9)
||| — alternation: matches expression on left OR right
1?1'1' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
\ddigit\d — digit (0–9)
\d?digit\d — digit (0–9) — repeated zero or one time (optional) · ? — zero or one time (optional)
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
\)\)\) — escaped character ')'
Pattern: 105 charsInput: 49 chars
100% client-side · private

Valid Examples

  • rgb(255, 0, 0)
  • rgb(0, 128, 255)
  • rgb(74, 222, 128)

Invalid Examples

  • rgb(256, 0, 0)
  • rgb(0, 0)
  • rgba(0, 0, 0, 1)