I'm trying to extract the page number where the search string is found.
Please see below my partial code:
For Each match As Match In Regex.Matches(TextPDF,nino_pattern,RegexOptions.IgnoreCase)
nino_pattern = match.Value
page = code to get the page number where the search string is found
ToalPage = Reader.NumberOfPages
FileWriter.WriteLine(filename & vbTab & nino_pattern & vbTab & Page & ToalPage)
Next