Answers for "what is a hex regex"

1

hex color regex

^#(?:[0-9a-fA-F]{3}){1,2}$
Posted by: Guest on December-05-2020
-1

how to write regex of hex code

regex = "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
Posted by: Guest on March-29-2021

Browse Popular Code Answers by Language