title: How to extract first character and numbers after that until find a character (a-z) in a string - C# 2.0
body: <p>How to extract numbers from a second index of a string until find a character (a-z) in a string?</p>
  <p>I am using C# version 2.0 (can't upgrade for some reasons).</p>
  <p>Here are some examples;</p>
  <ul>
  <li>M000067TGFD45F   = M000067</li>
  <li>B000064TFR765TXT = B000064</li>
  <li>B000065TFR765    = B000065</li>
  <li>B000067TGFD      = B000067</li>
  </ul>
  <p>I have tried Regex(&quot;[^0-9]&quot;) which works if there is no character after digits (4th example)</p>
  <pre><code> &quot;B&quot; + regexOnlyNumbers.Replace(mystring, string.Empty);
  </code></pre>