I have a string vaguely like this:
foo,bar,c;qual=\"baz,blurb\",d;junk=\"quux,syzygy\"
that I want to split by commas -- but I need to igno
I would do something like this:
boolean foundQuote = false; if(charAtIndex(currentStringIndex) == '"') { foundQuote = true; } if(foundQuote == true) { //do nothing } else { string[] split = currentString.split(','); }