code: public String replace(CharSequence text) {
          TextBuffer tb = wrap(new StringBuilder(text.length()));
          replace(pattern.matcher(text), substitution, tb);
          return tb.toString();
      }
docs: Takes all instances in text of the Pattern this was constructed with, and replaces them with substitution.
  @param text a String, StringBuilder, or other CharSequence that may contain the text to replace
  @return the post-replacement text