Regular Expressions 101

Library entries

JS Parse rgb or rgba CSS string

Vote

0

Regular Expression
pcre2

/
rgba?\(\s*(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,\s*(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,\s*(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,?\s*([01\.]\.?\d?)?\s*\)
/
gm

Description

Loading markdown...
Submitted by Beau Beauchamp, WebTIGERS - 2 months ago