Regular Expressions 101

Sponsors

Library entries

1
javascript

capture production

no description available
Submitted by anonymous - 3 years ago
1
python

Duco2

no description available
Submitted by anonymous - 3 years ago
1
javascript

map json

no description available
Submitted by anonymous - 3 years ago
1
python

day date time

no description available
Submitted by anonymous - 3 years ago
1
javascript

word boundary position

no description available
Submitted by anonymous - 3 years ago
1
javascript

matching numbers

no description available
Submitted by anonymous - 3 years ago
1
javascript

matching phone numbers

no description available
Submitted by anonymous - 3 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 - a year ago