Hex code Regular Expression (#F0F0F0)
Paul Hayman (6830 views)
Hex code Regular Expression (#F0F0F0)
The following matches valid HTML hexadecimal color codes. The # symbol is optional. It will except either the 3 digit form for the 216 Web safe colors, or the full 6 digit form.
#c#^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$
|