Hi folks,
I want to write one conditional regex for the below scenario:
I have one text file that is unstructured and i want to extract data
if
REPORT ID: CSS-110 and
REPORTING FOR: 000000000 GSP and ROLLUP TO: 000000 GSP ,SETTLEMENT CURRENCY: EUR ,then capture next all lines till first occurence of character END of Report
Note, this is a big file and end of report can appear multiple time ,ReportID can occur multiple time but the combination of this "REPORT ID: CSS-110 and
REPORTING FOR: 000000000 GSP and ROLLUP TO: 000000 GSP ,SETTLEMENT CURRENCY: EUR " occurs once.
Please help me with regex,
Thanks in adveance
Digits ,numbers,text are fixed.