Regex continuation pattern

Hi @Ishan_Shelke ,

Use if condition
System.Text.RegularExpressions.Regex.Matches(YourString.trim,"(?i)\bPAYMENT OF IMPORT BILL\b").Count=2

If Yes consider as B, else consider A

Regards,
Arivu