viewsby.wordpress.com
java string replace multiple occurrences of a character
To replace multiple occurrences of a character in a string use following regular expression in your java code: String s = “helloooooo”; s = s.replaceAll(“(.)\\1+”,&#8…