Regex help- large file

Hi Buddies,
'I have one big text file ,from which i want to extract one whole line from regex,
can you please help ,
Thanks in advance.
Here is an example…from this i have to extract the highlighted line only, the row, total purchase always remain same

Hi @Anjali_Rani

Could you send the Input Text, so that we can give an accurate answer?

Here is the Regex you could try:
TOTAL PURCHASE .*(?=\nNET PURCHASE)
or
TOTAL PURCHASE .*

2 Likes

Hey @Anjali_Rani
If the line you’re trying to extract always starts with TOTAL PURCHASE, you can use a simple regex like this:
^TOTAL PURCHASE.*$

Not working for me :frowning:

Thank you so much, It worked :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.