Page 1 of 1

Searching for strings containing a linebreak using SearchText

Posted: Wed Nov 27, 2024 12:10 pm
by tomr
Hello,

we have a TRichView in which I search for certain strings using the SearchText-method. Afterwards I replace the found string by some other string.
This works fine as long as the string I am looking for does not contain a linebreak.
For example I want to search for 'ooo' + #13#10 + 'ooo' in following richtext:

AAAooo
oooAAA

I cannot figure out to use SearchText in order to find this string. rvsroMultiItem is already included in SearchOptions, I also tested things like searching for 'ooo\nooo' or simply 'oooooo'.
I guess this whole thing has to do with the fact that text is organized in paragraphs/items.
Is there actually a way to search for (and replace) strings that include a linebreak/span through several paragraphs?

Re: Searching for strings containing a linebreak using SearchText

Posted: Wed Nov 27, 2024 12:52 pm
by Sergey Tkachenko
Sorry, it is not supported yet.