code: public String replace(String word) {
      int flags = ignoreCase_ ? Pattern.CASE_INSENSITIVE : 0;
      return Pattern.compile(pattern_, flags).matcher(word).replaceAll(replacement_);
    }
docs: Replace the word with its pattern.
  @param word The word
  @return The result