Section: Validation Recipes

Hex color

regex
regex
^#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$
Explanation

Covers 3, 6, and 8 digit forms.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Validation Recipes
UUID shape
Match a standard hyphenated UUID.
OpenIn sheetregexsame section
IPv4 address
Match an IPv4 address with octet range checks.
OpenIn sheetregexsame section
Domain name
Match a basic domain or subdomain name.
OpenIn sheetregexsame section
Semantic version
Match a semantic version string.
OpenIn sheetregexsame section
ISO date shape
Match a simple YYYY-MM-DD date shape.
OpenIn sheetregexsame section
CSS class selector
Match a simple CSS class selector.
OpenIn sheetregex1 tag match