title: How to pick out specific parts of a text box?
body: <p>I am trying to pick out specific letters/numbers from a text box, because each means something. After that I am trying to display in a label what it means.</p>
  
  <p>So if I have a number AB-123456, I need to first pick out AB something like:</p>
  
  <pre><code>If (textBox.Text.Substring(0,2) == "AB") {
  
  //Display to a label
  
  }
  </code></pre>
  
  <p>First off, this doesn't work and I also tried substring(0,1) but also was receiving errors when I used my clear button to clear the text box.</p>
  
  <p>After that I still need to pull the rest of the numbers. The next one I need to pull and define is 123, then 4 by itself, 5 by itself, and six by itself.</p>
  
  <p>How do I go about pulling each of these individually if substring isnt working?</p>