title: Finding a word within a PDF then returning 11 characters after that word?
body: <p>I have my code that searches each PDF page of a PDF document that has the word <code>Data_ID</code>.</p>
  
  <p>This is on every other page in this PDF document and the way it changes is like this:<br></p>
  
  <pre><code>data_id 400M549822
  
  data_id 400M549233
  </code></pre>
  
  <p>ETC..</p>
  
  <p>So right now my console is returning all the times it finds the string <code>data_id</code> but I also want it to return those characters after it...</p>
  
  <p>This is what I have so far:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Imports Bytescout.PDFExtractor
  Imports System.IO
  Imports System.Text.RegularExpressions
  
  Module Module1
      Class PageType
          Property Identifier As String
      End Class
  
      Sub Main()
          Dim direcory = "C:\Users\XBorja.RESURGENCE\Desktop\one main\"
          Dim pageTypes As New List(Of PageType)
          Dim ids = "data_id"
          Dim resultstring As String
          resultstring = Regex.Match(ids, "(?&lt;=^.{1}).*(?=.{5}$)").Value
  
          Dim currentPageTypeName = "unknown"
  
          For Each inputfile As String In Directory.GetFiles(direcory)
              For i = 0 To ids.Length - 1
                  pageTypes.Add(New PageType With {.Identifier = ids(i)})
              Next
  
              Dim extractor As New TextExtractor()
              extractor.LoadDocumentFromFile(inputfile)
              Dim pageCount = extractor.GetPageCount()
  
              For i = 0 To pageCount - 1
                  '        ' Find the type of the current page
                  '        ' If it is not present on the page, then the last one found will be used.
                  For Each pt In pageTypes
                      Console.WriteLine(resultstring)
                  Next
              Next
          Next
      End Sub
  End Module
  </code></pre>
  
  <p>The <code>resultstring</code> is what I was trying to use with regex but it's only counting the positions within <code>data_id</code> and not the ones after it. </p>
  
  <p>So how would I do this so that it returns the following 10 characters (excluding space) after the word <code>data_id</code> ??</p>