I have a multi line text from where i want to match the text between the word "Description Amount" and a random digit with commas as delimiter.
Example Input:
Description Amount
Being the Amount received from above branch in favour of SAF SAF
FOR THE MONTH OF JANUARY-2021.
3,24,500.00
Expected Output:
Being the Amount received from above branch in favour of SAF SAF
FOR THE MONTH OF JANUARY-2021.
Example input:
Description Amount
Being the Amount received from above branch in favour of SD SAF
VALUE SAF OF CHAPAINAWABGANJ AREA FOR THE MONTH OF
JANUARY 2021
9,18,049.00
Expected Output:
Being the Amount received from above branch in favour of SD SAF
VALUE SAF OF CHAPAINAWABGANJ AREA FOR THE MONTH OF
JANUARY 2021
The input contains multiple variable no of line breaks. I used the following regex:
(?<=Description Amount\s)(.*\n.*)
But it needs improvement.Thanks in advance.