// Debug.debug("\t"+"pattern", pattern);
RE re = REGEX_CACHE.getRegEx(pattern);
// RE re = new RE(pattern.toLowerCase());
// Debug.debug("prefix", prefix_pattern);
if (!re.match(s.toLowerCase()))
return s;
// String match = re.getParen(0);
// Debug.debug("match(" + pattern + ")", s);
s = s.substring(0, re.getParenStart(0))
+ s.substring(re.getParenEnd(0));