code: public String replaceAll(String pString, String pRegex, String pReplacement) {
          return Pattern.compile(pRegex).matcher(pString).replaceAll(pReplacement);
      }
docs: Replaces each substring of this string that matches the given
  regular expression with the given pReplacement.
  <p/>
  An invocation of this method of the form
  <tt>replaceAll(<i>str</i>, <i>pRegex</i>, <i>repl</i><)</tt>
  yields exactly the same result as the expression
  <p/>
  <blockquote><tt>
  {@link Pattern}.{@link Pattern#compile compile}(<i>pRegex</i>).
  {@link Pattern#matcher matcher}(</tt><i>str</i>{@code ).
  {@link java.util.regex.Matcher#replaceAll replaceAll}(}<i>repl</i>{@code )}</blockquote>
  
  @param pString      the string
  @param pRegex       the regular expression to which this string is to be matched
  @param pReplacement the replacement string
  @return The resulting {@code String}
  @throws PatternSyntaxException if the regular expression's syntax is invalid
  @see Pattern
  @see String#replaceAll(String,String)