If you read that document more carefully you'll see this:
Quote:
Once you have stored them in the array, and have converted each of the elements to regular numbers (32 bit unsigned) you should logically AND them with 0x7FFFFFFF.
Here's how you could go about it:
Code:
alias blendian {
bset &a 1 $replace($longip($base($1,16,10)),.,$chr(32))
return $base($and($bvar(&a,1).long,$base(0x7fffffff,16,10)),10,16,8)
}
An alternative, slightly more compact, way is
Code:
alias blendian return $regsubex($1,/^(?:0x)?([a-f\d]{2})((?1))((?1))((?1))/,$base($and($base(\4,16,10),127),10,16,2) $+ \3\2\1)