I have this string: 11000000101010000000010000000000
I would like to count the 0s starting at the back until I hit 1 and stop there, determining the total number of 0s at the end. In this particular case it would give me 10 as an answer.
Any help greatly appreciated.