return s_re.substitute(pattern, text);
try { Util.substitute(result, matcher, compiler.compile("(::(?:\\w+(?:\\.\\w+)*)::)"), subst, input, Util.SUBSTITUTE_ALL); } catch (MalformedPatternException e) { throw new UncheckedWrapperException("cannot perform substitution", e); } return result.toString();
    public static String interpolate(String text, String key, String value) {        String pattern = "s/::" + key + "::/" + value + "/";        return s_re.substitute(pattern, text);    }