Java regular expressions do not delete points
                                        
                    •
                    Java                                    
                I am trying to delete "..." in the text and replace it with "."
My code:
System.out.println(TextHandler.class.toString() + " removeExcessiveSpaces E2 " + text);
while (text.contains("\\. \\.")) {
    text = text.replaceAll("\\. \\.",".");
}
System.out.println(TextHandler.class.toString() + " removeExcessiveSpaces E3 " + text);
Text input:
"from the streets' fit but you kNow it. . this is just another case of female stopping play,. in an otherwise total result of a holiday. by m-uhjuly 04,2006. . 8 . 42 . .. .... . . . . . . . . <script>//<