Regular Expressions 101

Sponsors

Library entries

1
golang

Siebel Id

no description available
Submitted by anonymous - 6 years ago
1
golang

Flexible box

no description available
Submitted by anonymous - 2 years ago
1
golang

Lxx Wurzel

no description available
Submitted by anonymous - 2 years ago
1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - 10 months ago
1
golang

SQL comments Big Query

SQL comments on Big Query
Submitted by anonymous - 9 months 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