Let's say I have strings like this one, and I need to get rid of three 0 in it. I need to get rid of the last three ones. The numbers that should be created after removing these zeroes can consist only of 2 or 3 digits.
Probably the best idea would be to somehow tell regex to only match when the pattern of 000 is followed by digits from [1-9] and exclude [1-9] from it. However, I have no idea how to do that.
76000123000100000101000 ---> 76 123 100 101
Is it possible to do with regex? I tried many different patterns, but I can't find the right one.