Regular Expressions 101

Library entries

Javascript - rgb / rgba

Vote

0

Regular Expression
javascript

/
(?:(?:rgb\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3})\))|(?:rgba\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?([0-1]\.0|0\.[0-9])\)))
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago