J, 12 bytes
[:>./8#.\.#:
#: to binary
8 \. remove consecutive groups of eight
#. convert each result to decimal
>./ maximum
[: do nothing, this lets me avoid parentheses
J, 12 bytes
[:>./8#.\.#:
#: to binary
8 \. remove consecutive groups of eight
#. convert each result to decimal
>./ maximum
[: do nothing, this lets me avoid parentheses