Regular Expressions 101

Sponsors

Library entries

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
1
javascript

Discord emoji regex

Discod emoji regex
Submitted by Xaliks - a year ago
1
javascript

Color RegEx

Color RegEx
Submitted by Xaliks - a year ago
1
javascript

Zeitnahme

Parses "Zeitnahme" text files
Submitted by anonymous - 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 - 10 months ago