@guy038 said:
Moreover, the entire lines, with their line-breaks, were colored with the custom style => OK
Then I placed the caret at end of the fifth line, between the word see and its line-break
After running the Replace Before option => I got the message No matches found. This is the expected behavior as the caret is INSIDE the colored zone and scope !
No, you are missing the point.
The custom style coloring is a consequence of how Columns++ Search in indicated region works. Columns++ is always doing the equivalent of what in Search++ would be a search in Marked Text. When there is no selection, nothing is marked and Auto set is checked, all text in the document is marked with the custom style. That isn’t the cause of the difference between what you’re seeing and what you expect.
Compare what happens if you do your original test with this expression instead:
(?-s)^xyz\R.+|^abc\R.+
In Columns++ you’ll see the coloring, in Search++ you won’t, but the results will be the same: both After and Before will work.
To see why your original expression didn’t work for Before, start fresh again, use your original expression, do Replace After and then do Select All (no Before).
Notice that the selected area includes where your caret was. That is why it isn’t considered to be a match Before the current position.