I\'m trying to replace the last dot in a String using a regular expression.
Let\'s say I have the following String:
String string = \"hello.world.how
Try this:
string = string.replaceAll("[.]$", "");