title: How to get Nth number from the specific position of a number in a string - Regex
body: <pre><code>288007  327920  374740 000368   044575  082865 680798
  717374  755879  811106  855460  920577  953515  996819 ......
  </code></pre>
  
  <p>I have a string containing thousands of 6-digit numbers and I want to extract the Nth numbers after Nth number with the help of regular expression.</p>
  
  <p>Let say I need to extract Three numbers after the 4th number then The result should be <code>044575  082865 680798</code>.</p>
  
  <p>another example If I need to extract 2 numbers after the 10th number then the result should be <code>855460  920577</code>.</p>
  
  <p>I don't know is this possible with regex, I think <code>FOR EACH</code> statement may be use in my case.</p>
  
  <p>I am only able to extract each six digits number with the code below. </p>
  
  <pre><code>Dim NumberMatchCollection As MatchCollection = Regex.Matches("String containing numbers", "(?&lt;!\d)\d{6}(?!\d)")
  For Each NumberMatch As Match In NumberMatchCollection
  
     Dim ItemNumber As String = NumberMatch.Value
  
  Next
  </code></pre>
  
  <p>Edited:
  I can not guarantee that every separator character will be a single space, a double space, a tab or something else. I can just guarantee that the number length always will be 6 which will be separated by space(s) or tab(s).</p>