public static String removeDelimiter(String s,final char delim,final char openEscape,final char closeEscape){
  StringBuilder t=new StringBuilder(s);
  boolean escaped=false;
  for (int i=0; i < t.length(); ++i) {
    char c=t.charAt(i);
    if (escaped) {
      if (c == closeEscape) {
        escaped=false;
      }
    }
 else     if (c == openEscape) {
      escaped=true;
    }
 else     if (c == delim) {
      t.deleteCharAt(i--);
    }
  }
  return t.toString();
}

public static String removeDelimiter ( String s , final char delim , final char openEscape , final char closeEscape ) { StringBuilder t = new StringBuilder ( s ) ; boolean escaped = false ; for ( int i = 0 ; i < t . length ( ) ; ++ i ) { char c = t . charAt ( i ) ; if ( escaped ) { if ( c == closeEscape ) { escaped = false ; } } else if ( c == openEscape ) { escaped = true ; } else if ( c == delim ) { t . deleteCharAt ( i -- ) ; } } return t . toString ( ) ; }
removes delimiter from the string ignores parts in the escapes .
