in reply to Re: binary problemin thread binary problem
That won't produce the output he wanted. He wants the length of the string remaining from each 1 to the end of the string. This only counts the number of 0's between the 1's.
--rjray