Regular Expressions 101

Sponsors

Library entries

10
python

entity

no description available
Submitted by anonymous - 7 years ago
8
python

domain - host

no description available
Submitted by anonymous - 7 years ago
7
python

CSS Import

no description available
Submitted by anonymous - 8 years ago
7
python

repeat group match

no description available
Submitted by anonymous - 7 years ago
6
python

Find consecutive duplicate words

no description available
Submitted by anonymous - 7 years ago
5
python

Form Tag

Form Tag
Submitted by Jay Patel - 6 years ago
5
python

psswd

no description available
Submitted by anonymous - 6 years ago
5
python

Match Only Text

no description available
Submitted by anonymous - 6 years ago

Valid RGB color value

Vote

1

Regular Expression
javascript

/
^rgba?\((?:\s+)?(?<r>\d+(?<unit>%?))(?:\s+)?(?<separator>[\s|,])(?:\s+)?(?<g>\d+\k<unit>)(?:\s+)?\k<separator>(?:\s+)?(?<b>\d+\k<unit>)(?:\s+)?(?:(?<=(?:,.+))(?:,(?:\s+)?(?<a>(?:\d+)?(?:\.?\d+)))?(?:\s+)?)?\)$
/
gm

Description

Loading markdown...
Submitted by BorisTB - 9 months ago