Given a
String like "000864.50", how can I strip off the leading zeros
except if it's the last character before the decimal? The strings will always end in a decimal place and two digits.
So:
000756.90 becomes 756.90, and 0000070.50 should become 70.50
It seems like I want to do two things:
1. replace all instances of "00." with "0.", recursively, in case it's all leading zeros, and
2. remove all zeros that occur before a
pattern that begins with a non-zero digit and ends with a decimal