Regular Expressions 101

Sponsors

Library entries

0
javascript

屏蔽脏话

屏蔽骂人脏话、政治言论等
Submitted by anonymous - 3 months ago
0
python

Tok. test.1

T
Submitted by anonymous - 3 months ago
0
python

nsv2-general

log
Submitted by anonymous - 3 months ago
0
python

vert-cata

log
Submitted by anonymous - 3 months ago
0
python

SHA256 HASH

Reference http://wiki.hash.kr/index.php/SHA256
Submitted by RuvyTale - 3 months ago
0
python

IP

Reference https://vencedor.tistory.com/85
Submitted by RuvyTale - 3 months ago
0
python

txt mini

txt
Submitted by anonymous - 3 months ago
0
javascript

Diskusija

ss
Submitted by LiunuxMan - 3 months ago
0
javascript

Separate First Vowel

Separator for a vowel start string
Submitted by FerreiraR - 3 months ago
0
javascript

Regex101

To submit my account
Submitted by anonymous - 3 months ago
0
javascript

XML Parsing for IE<9

All my marbles are gone.
Submitted by Odd Stråbø - 3 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 - 8 months ago