How to extract required data from text file which has duplicate values?

Hi,

Hope the following sample helps you.

mc = System.Text.RegularExpressions.Regex.Matches(strPdf,"Bank\s+:\s+(?<BANK>.*?)\s+Account Number\s+:\s+(?<ACCOUNTNUMBER>.*?)\s+Currency\s+:\s+(?<CURRENCY>.*?)\s+Name\s+:\s+(?<NAME>.*?)\r?\n[\s\S]+?Closing balance\s+:\s+(?<CLOSINGBALANCE>[.,\d()]+)")

Sample20221109-2.zip (2.8 KB)

Rregards,

1 Like