Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-06-17 10:07
Flavor·PCRE (Legacy)

/
#([a-fA-F0-9]{3})([a-fA-F0-9]{3})?(?=\W?)
/
g
Open regex in editor

Description

Matches all the RGB colors in the format #RRGGBB and #RGB

Submitted by Gabriel Hautclocq