Regular Expressions 101

Sponsors

Library entries

1
javascript

Test

Haiz
Submitted by anonymous - a year ago
1
javascript

value-attached text

value-attached text
Submitted by pyrochlore - a year ago
1
javascript

Basic Phone Number Matching

Basic Phone Number Matching
Submitted by Anthony Cooper - a year ago
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

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