Convert a binary number (of any size) into a hexadecimal number.
A POSITIVE binary number with just the
1s. A valid input will always match the following regex:
[0-1]+. If the input is not a valid binary number, that is, anything not matching this regex, the output should be
0 or the program should exit, or error. The output does not need the leading
0x nor does it need to be capitalized.
The binary number converted to hexadecimal.
Original Code-Golf Rules, Lowest amount of bytes.
IN:  OUT: [0x5] OR  IN:  OUT: [0x80520] OR  IN:  OUT: [0x55] OR  IN:  OUT: [0xFFFF] OR [FFFF] OR [0xffff] OR [ffff] IN:  OUT:  IN: [a] OUT:  IN: [-1010101] OUT:  IN: [abcdef] OUT:  IN:  OUT: