Returns true if str is a valid hexadecimal string.
true
str
bool isHexadecimal(String str) => hexadecimalReg.hasMatch(str);