Hi Team,
In an input string we can have multiple occurrences of some specific keywords.
Is there a way we can remove all the lines including and in-between those keywords?
For below example, we have to look for the keyword '#end and traverse upto the line it first finds ); and delete all the lines [including lines which contains '#end and );]
Input ::
PD12"You have completed the survey. Thank you for your time."
info;
);
'#end
PR3"You have completed the survey. Thank you for your time."
info;
);
'#end
SD7"You have completed the survey. Thank you for your time."
info;
);
'#end
Output ::
PD12"You have completed the survey. Thank you for your time."
info;
PR3"You have completed the survey. Thank you for your time."
info;
SD7"You have completed the survey. Thank you for your time."
info;