A Regex Tutorial, Matching a Hex Value This is my example of a Regex Tutorial about how matching a Hex value works Summary This is a tutorial about a Regex. I will explain this line of code: Matching a Hex Value - /^#?([a-f0-9]{6}|[a-f0-9]{3})$/ Table of Contents