Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-11-16 21:17
Flavor·PCRE (Legacy)

/
((?<!\d|\.)([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?!\d|\.) *[,;] *){2}(?<!\d|\.)([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?!\d|\.)
/
gi
Open regex in editor

Description

Color RGB in shape: 255, 255, 255 ',' or ';' are accepted

Submitted by theBlueBisu