Gets a regex that matches a YAML number in hexadecimal notation.
private static function getHexRegex() : string { return '~^0x[0-9a-f_]++$~i'; }