static S regexpReplaceIC_direct(S s, S pat, S replacement) { Matcher m = regexpIC(pat, s); new StringBuffer buf; while (m.find()) m.appendReplacement(buf, replacement); m.appendTail(buf); ret str(buf); }