Not able to extract specific data from PDF

If you need to find the total number of matches available in txt document try this
system.text.RegularExpressions.Regex.Matches(strInvoiceText,“(?<=Tax Invoice No : )(\d+)|(?<=Customer ID : )(\d+)”).count.tostring