Hi,
Alright. I modifid pattern to find Page and Co.REGNo. Can you try the following sample?
System.Text.RegularExpressions.Regex.Matches(strData,".*Page.*\r?\n\r?\n.*Co\.REG.No\..*\n(?<COMPANYNAME>.*?)\s[^\S\n]+.*\n[\s\S]+?(?=.*?Page|$)")
Sample20221117-4v4.zip (4.1 KB)
Regards,