Is this the proper REGEX to remove trailing decimal and zeroes from a string? I can\'t get it to work. What am I missing?
Nope. Use this:
str.replaceAll("[.0]+$", "");