Missing zeros

I use a script like

value = value.replaceAll("\\.", "");

To remove dots from 8-digit number series. All work well except when the series begins with a zero, then the zeros never show up in the final value. Typically they look like:

5.7565-258 which works well. But a sere like 05.589-154 will become 5589-154.

Happy for hints

Are you viewing the results

Are you viewing the results in MS Excel? If you're saving to a CSV with leading zeros, Excel will drop them.

Oh yes I do while testing the

Oh yes I do while testing the session. Another one marked for Bill Gates then..

Thanks Jason