docs: public static String replacePattern(final String text, final String regex, final String replacement) {
          if (text == null || regex == null || replacement == null) {
              return text;
          }
          return Pattern.compile(regex, Pattern.DOTALL).matcher(text).replaceAll(replacement);
      }