Regular Expressions 101

Sponsors

Library entries

1
javascript

turkdevops

Türkiye Geliştirici Operasyonları
Submitted by anonymous - a year ago
1
javascript

Simple AWS ARN Regex

Simple AWS ARN Regex
Submitted by anonymous - a year ago
1
javascript

Greater manchester postcode validation

🤯
Submitted by donivanes - a year ago
1
java

css attribute validation

css attribute validation
Submitted by arnab - a year 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