Trying to find the following scenario in multiple files.
Line 1 starts with REF*D9 (* is part of data not wildcard), followed by 1 or more lines, then a line that starts with K3.
I want to find the data between REF*D9 and upto and including the line starting with K3.
I do NOT want any lines that start with REF*D9 that are not followed by a K3 before another REF*D9 occurs.
I have tried %REF?D9?++[^p]++K3 to no avail.
Looking for suggestions. Thanks. Richard.
Line 1 starts with REF*D9 (* is part of data not wildcard), followed by 1 or more lines, then a line that starts with K3.
I want to find the data between REF*D9 and upto and including the line starting with K3.
I do NOT want any lines that start with REF*D9 that are not followed by a K3 before another REF*D9 occurs.
I have tried %REF?D9?++[^p]++K3 to no avail.
Looking for suggestions. Thanks. Richard.