I want to remove the leading zeros in the decimal numbers.
So i want the output should be .324 not 0.324. I tried str.replaceFi
.324
0.324
str.replaceFi
Try this
str = str.replaceFirst("^0\\.", ".");