Checks whether str is a hex string (contains only valid hex digits), optionally with radix specifier ("0x").
string to check
if true, the radix specified "0x" is allowed at the start of str
true if str is a hex string
See Implementation
Checks whether str is a hex string (contains only valid hex digits), optionally with radix specifier ("0x").