i am writing a script and part of it is a filtering process, however i am not sure whats the best way to do this.
i have a selection of numbers as follows eg:
48404587
43857054
3847047022
What i am looking for is the '0', what i want it to find how far the nearest '0' is to the end of the string, working from right to left.
so first line is 5 from the right, second 3 from the right.
The third line has two '0's in but i just want the first one returning again from right to left which would be 3 from right NOT 6 from right.
Anyone got ideas how to do this?
cheers