code: private String generateMultidots(String line) {
  
      line = multiDots.matcher(line).replaceAll(" DOTMULTI$1 ");
      final Matcher dotMultiDot = dotmultiDot.matcher(line);
  
      while (dotMultiDot.find()) {
        line = dotmultiDotAny.matcher(line).replaceAll("DOTDOTMULTI $1");
        line = dotMultiDot.replaceAll("DOTDOTMULTI");
        // reset the matcher otherwise the while will stop after one run
        dotMultiDot.reset(line);
      }
      return line;
    }
docs: This function normalizes multi-period expressions (...) to make
  tokenization easier.
  
  @param line
  @return string