Regular Expressions 101

Sponsors

Library entries

1
python

Regex pattern for numeric values

Positive number !
Submitted by Cheikh Saab Bouh SOW - a year ago
1
python

MAC Address

Match mac address with :, -, ., or no dividers.
Submitted by Brandan Neises - a year ago
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
python

regex_prix_DAB_V2

nlp
Submitted by guif - a year ago
1
python

regex_ddc_V3

nlp
Submitted by guif - a year ago
1
python

regex_nox_ddc_V3

nlp
Submitted by guif - a year ago
1
python

regex_ddc_V4

nlp
Submitted by guif - a year ago
1
python

regex_ddc_V5

nlp
Submitted by guif - a year ago
1
python

regex_nok_ddc_V5

nlp
Submitted by guif - 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