Remove n number of dot(.) from String in Java -


this question has answer here:

i have following string , want remove dynamic number of dot(.) @ end of string.

"abc....." 

dot(.) can more one

try this. uses regular expression replace dots @ end of string empty strings.

yourstring.replaceall("\\.+$", ""); 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -