Skip to content

Instantly share code, notes, and snippets.

@eikouji
eikouji / Regex-Tutorial-Hex.md
Last active March 18, 2022 03:06
Regex Tutorial Gist -- Matching a Hex Value

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