private String singleReplace(String inputString, String oldString, String newString) {
    String result = inputString;
    int propLength = oldString.length();
    int startPos = result.indexOf(oldString);
    if (startPos == -1) {
      LOG.info("string: " + oldString + " not found in input: " + result + " - returning input");
      return result;
    }
    if (startPos == 0) {
      result = result.substring(propLength);
      result = newString + result;
    } else {
      result = result.substring(0, startPos) + newString + result.substring(startPos + propLength);
    }
    return result;
  }
Build the regular expression needed to parse log entries
olv-core/src/main/java/pl/otros/logview/parser/log4j/Log4jPatternMultilineLogParser.java