Regular Expressions 101

Library entries

RGBA color values and opacity matcher

Vote

1

Regular Expression
javascript

/
^(?:rgba?)?[\s]?[\(]?[\s+]?(\d+)[(\s)|(,)]+[\s+]?(\d+)[(\s)|(,)]+[\s+]?(\d+)[(\s)|(,)]+[\s+]?([0-1]?(?:\.\d+)?)$
/
i

Description

Loading markdown...
Submitted by Maulik Soni - 6 years ago