Hi, @ohm-dios,
Ah…, of course ! In the search regex :
(?s-i)START\h*(\d+).+?END\R(?=.+(START\h*\1\R.+?END\R?))|^===.+
You’ll notice the part START\h*\1\R, which defines the beginning of the paragraph that need to be copied, located under the ======== line
The back-reference \1 to the group 1 ( which is the number after the START string and space char(s) ) must be immediately followed with the EOL chars ( \R )
Thus, if anything is located between the number and the end of line, it cannot be equal to the corresponding number, located above the ========= line => NO match of this specific paragraph :-((
BR
guy038