matcher.appendTail(stringBuffer);
matcher.appendTail(stringBuilder);
  private static String escapeCharsToRegex(String []stringMap,                                           Pattern pattern,                                           String chars)  {    StringBuffer stringBuffer = new StringBuffer();    // For testing only:    // String delimiter = "\n\tNUMBER\r1stco*lumn\t\n\t\n\tNUM|BER(2nd)column\tNUMBER\\3rdcolumn\tNUMBER4thcolumn\t\naa";    Matcher matcher = pattern.matcher(chars);    if (matcher.find()) {      String replacement = matcher.group();      char c = replacement.charAt(0);      if (c < 32) {        replacement = stringMap[c-9];      } else if (c == '\\') {        replacement = "\\\\";      }      matcher.appendReplacement(stringBuffer, "\\\\"+replacement);    }    matcher.appendTail(stringBuffer);    return stringBuffer.toString();  }