Hello, @coises and All,
Could you enlighten me of a weird behaviour within your two plugins ColumnsPlusPlus and Search++ ?
we’ll try to use the (?s)^xyz.+|^abc.+ regex against this text, pasted in a new tab :
This is
a test
abc
with some text
to see
xyz
if everything
works properly
Place the caret at beginning of the 5th line to see
Use the Replace All After in Whole Document option => The third last lines are deleted => OK
Now, use the Replace All Before in Whole Document option => Message No match found before current position ! Why ? to my mind, the (?s)^xyz.+|^abc.+ regex should have matched the 3 lines :
abc
with some text
to see
Of course, if we use, instead, the Replace All in Whole Document option, it does delete these three lines !
A similar behaviour occurs with the ColumnPlusPlus plugin. I use this layout :
[image: 1796111675502-35f2aab7-60eb-48cc-be10-7ab68e9458f8-image.jpeg]
Place the caret at beginning of the 5th line to see
Use the Replace After option => The third last lines are deleted, all the remaining text is colored with the custom style and the message One replacement made is displayed => OK
Now, use the Replace Before option => we get the message No match found, with all text still in custom style
[image: 1796111704342-34368dea-f211-416d-a596-bf2328335155-image.jpeg]
Of course, if we use, instead, the Replace All option it does delete the three lines from string abc
Best Regards,
guy038
P.S. :
See also the end of this post : https://community.notepad-plus-plus.org/post/106889