/^<([a-z]+)([^<]+)(?:>(.)</\1>|\s+/>)$/ - the preceeding beuty matches an html tag!
Today it is your lucky day!!! I will bless you with the knowledge of the "Matching A Hex Value " Regular Expression! So have a seat get comfy and read on, be amazed at this knowledge bomb.
This regex /^#?([a-f0-9]{6}|[a-f0-9]{3})$/) will match a hex value in this tutorial we are going to break it down!