Regular Expressions 101

Sponso⁠rs

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
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
Created·2021-06-05 11:01
Type·Match
Flavor·PCRE2 (PHP)

This will parse and give you the values of an RGB or RGBA CSS style.

Submitted by Beau Beauchamp, WebTIGERS
Open Workspace