damanbagga
Technical User
I have a pattern of text below. I want to insert line with text <E. > if missing between two lines with text <D. %> and <Answer:>
I have i/p like below --->
C. Apple
D. Some variable text here
Answer: C
I want o/p like below --->
C. Apple
D. Some variable text here
E. <----
Answer:
<---- Note, I want <E. > to be inserted if not present between lines <D. %> and <Answer:>
I have i/p like below --->
C. Apple
D. Some variable text here
Answer: C
I want o/p like below --->
C. Apple
D. Some variable text here
E. <----
Answer:
<---- Note, I want <E. > to be inserted if not present between lines <D. %> and <Answer:>