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