Hello, @alimirzaei5778, @neil-schipper, @terry-r, @alan-kilborn and All,
We can even speed up the search regex process with this syntax :
(?-is)^sunday.+\R.+\R(?:(?! 1112).+\R){4,}A=.+\R?
Indeed, if several consecutive blocks, without the string \x201112 at beginning of lines , it will select all these blocks, in one go !
You could say why does it work that way ? Well, the regex part (?:(?! 1112).+\R){4,} finds any consecutive range of lines which do not begin with \x201112
And it’s particularly the case of the lines :
Beginning with Sunday
Beginning with Int
Beginning with A=
Luckily, this accumulation of matched lines stops as soon at it meets a line beginning with \x201112. But, as it must also satisfy the end of the regex A=.+\R?, the regex engine is forced to backtrack 3 lines before ( by decreasing the quantifier of 3 ( one at a time ), in order to match the last line of the previous block, beginning with A= !
Best Regards,
guy038