title: foo.split(',').length != number of ',' found in 'foo'?
body: <p>Maybe it's because it's end of day on a Friday, and I have already found a work-around, but this is killing me.</p>
  
  <p>I am using Java but am .NET developer.</p>
  
  <p>I have a string and I need to split it on <s>semicolon</s> comma. Let's say its a row in a CSV file who has <s>200</s> 210 columns. line.split(',').length will be sometimes, 199, where count of ',' will be 208 OR 209. I find count in 2 different ways even to be sure (using a regex, then manually looping through and checking the character after losing my sanity).</p>
  
  <p>What's the super-obvious-hit-face-on-desk thing I'm missing here? Why isn't foo.split(delim).length == CountOfOccurences(foo,delim) all the time, only sometimes?</p>
  
  <p>thanks much</p>