I thought you might just use Jens' UDF for inspiration to write one that returns the particular octet you're looking for as does the one-liner batch you have.

Jens' UDF just returns a true or false.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.