Fixed regex to check chars of a hex code. Added test to catch.