/* Separar texto por comas, excepto entre comillas, con expresiones regulares
   Los elementos con comillas se devuelven sin las comillas
   https://es.stackoverflow.com/q/65502/127 */
 
import java.util.regex.Matcher;
import java.util.regex.Pattern;
 
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
 
		final String regex = ",(\"([^\"]*)\"|[^,]*)";
		final String text  = ",12070024,Deutsche Bank Privat\" und\" Geschäftskunden,16856,\"Kyrätz, Prägnitz\"";
 
		final Pattern pattern = Pattern.compile(regex);
		final Matcher matcher = pattern.matcher("," + text);
		
		String elemento;
		int n = 0;
		
		System.out.println("Texto original: " + text);
 
		while (matcher.find()) {
	        System.out.print  ("Elemento " + ++n + ": ");
	        
	        if (matcher.group(2) != null)
	        {   // Elemento entre comillas?
	        	elemento = matcher.group(2); // Obtener el texto sin las comillas
	        }
	        else
	        {
	        	elemento = matcher.group(1);
	        }
	        System.out.println(elemento);
		}
	}
}