title: Weird results when splitting strings in VB.NET
body: <p>I was getting weird results when doing multiple splits on a string, so I decided to make a simple test to figure out what was going on</p>
  
  <p>testString "1234567891011121314151617181920"</p>
  
  <p>If I wanted to get whats between 10 to 20 in Javascript I would do this:</p>
  
  <pre><code>var results = testString.split("10")[1].split("20")[0]
  </code></pre>
  
  <p>Which would return <strong>111213141516171819</strong></p>
  
  <p>However when I do this in VB I get <strong>111</strong></p>
  
  <pre><code>Split(testString,"10")(1).Split("20")(0)
  </code></pre>
  
  <p>It seems the 2nd split is only recognizing the first character no matter what I put.</p>
  
  <p>So it's stopping when it finds the next "2" in the string, even "2abc" would have the same outcome even though that string doesn't even exist.</p>