I have the following string as input :
\"2.0,3.00,-4.0,0.00,-0.00,0.03,2.01,0.001,-0.03,101\"
Final output will be like :
is it possible to just use replace? example:
str.replaceAll("\.0+,|,0+(?=\.)", ",");
demo