Pattern
/rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\)/Sample text
color: rgb(36, 102, 168); rgba(0,0,0,0.4) #2466A8Test this pattern in the editor
rgb/rgba function colors in stylesheets.
/rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\)/color: rgb(36, 102, 168); rgba(0,0,0,0.4) #2466A8Test this pattern in the editor