public List<String> splitStringWithDefaultDelimiterEscaped(String inputString){
  String delimiter=configurationHelper.getProperty(ConfigurationValue.FIELD_DATA_DELIMITER);
  String escapeChar=configurationHelper.getProperty(ConfigurationValue.FIELD_DATA_DELIMITER_ESCAPE_CHAR);
  List<String> splitString=new ArrayList<>();
  if (StringUtils.isNotBlank(inputString)) {
    String regex="(?<!" + Pattern.quote(escapeChar) + ")"+ Pattern.quote(delimiter);
    for (    String s : inputString.split(regex)) {
      splitString.add(s.replace(escapeChar + delimiter,delimiter));
    }
  }
  return splitString;
}

public List < String > splitStringWithDefaultDelimiterEscaped ( String inputString ) { String delimiter = configurationHelper . getProperty ( ConfigurationValue . FIELD_DATA_DELIMITER ) ; String escapeChar = configurationHelper . getProperty ( ConfigurationValue . FIELD_DATA_DELIMITER_ESCAPE_CHAR ) ; List < String > splitString = new ArrayList < > ( ) ; if ( StringUtils . isNotBlank ( inputString ) ) { String regex = "(?<!" + Pattern . quote ( escapeChar ) + ")" + Pattern . quote ( delimiter ) ; for ( String s : inputString . split ( regex ) ) { splitString . add ( s . replace ( escapeChar + delimiter , delimiter ) ) ; } } return splitString ; }
splits the input string based on the default delimiter , and also escapes delimiter .
