MatchResult endtagM = RegExp.match("\\</KfmIf\\s*\\>", html2);
if(endtagM == null) {
return replacementOccured;
}
replacementOccured = true;
String replacement = (keep ? html.substring(starttagM.endOffset(0), endtagM.beginOffset(0) + offset) : "" );
if(domark) {
//D KFMSystem.log.detail("replaceAllKfmIf: mark!");
replacement = markTag(starttagM.group(0)) + replacement + markTag(endtagM.group(0));
}
if(debug) {