title: Return a number from String after a specific word
body: <p>I want to get a Substring out of a <code>String</code>.</p>
  
  <p>The Substring I want is a sequence of numerical characters.</p>
  
  <p><strong>Input</strong></p>
  
  <pre><code>"abcdefKD-0815xyz42ghijk";
  "dag4ah424KD-42ab333k";
  "BeverlyHills90210KD-433Nokia3310";
  </code></pre>
  
  <p>Generally it could be any String, but they all have one thing in common:</p>
  
  <ul>
  <li>There is a part that starts with KD- </li>
  <li>and ends with a number </li>
  <li>Everything after the number to be gone.</li>
  </ul>
  
  <p>In the examples above this number would be <code>0815</code>, <code>42</code>, <code>433</code> respectively. But it could be any number</p>
  
  <p>Right now I have a Substring that contains all numerical characters after KD- but I would like to have only the 0815ish part of the string. </p>
  
  <p><strong>What i have so far</strong></p>
  
  <pre><code>String toMakeSub = "abcdef21KD-0815xyz429569468949489694694689ghijk";
  toMakeSub = toMakeSub.Substring(toMakeSub.IndexOf("KD-") + "KD-".Length);
  String result = Regex.Replace(toMakeSub, "[^0-9]", "");
  </code></pre>
  
  <p>The Result is <code>0815429569468949489694694689</code> but I want only the <code>0815</code> (it could be any length though so cutting after four digits is not possible).</p>