MatchResult starttagM = RegExp.match(cmdPattern("KfmIf", label), html);
if(starttagM == null) {
return replacementOccured;
}
int offset = starttagM.endOffset(0);
String html2 = html.substring(offset);
MatchResult endtagM = RegExp.match("\\</KfmIf\\s*\\>", html2);
if(endtagM == null) {
return replacementOccured;
}