#19376
Deipotent
Participant

The correct regex to use is actually

background-color:#[[:xdigit:]]{3,6}