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 .