I need to return all occurrences of when three lines are consecutively written in a file. I'm looking for the following:
FieldName=<some name>
Operator=<some operator>
Value=<some value>
Example File Content
MatchAny=FALSE
FieldValue=TRUE
Operator=Is less than
TotalFields=1
[OutputTarget0SelField0]
FieldName=ORIG-DATE
Operator=Is greater than
Value=20000101
[OutputTarget1]
To do this, I have been trying to use Notepad++ Find in Files functionality but I cannot seem to get the correct regular expression.
Here is what I've tried (in this case I'm assuming the two lines after FieldName= will always be Operator= and Value=)
Find what: (FieldName=|Operator=|Value)
is also close, but obviously doesn't account for the fact that these lines need to be consecutive ("FieldName=" followed by "Operator=" followed by "Value=") and returns all single occurrences as well.