Searching for strings containing a linebreak using SearchText

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 25
Joined: Wed Dec 09, 2020 9:36 am

Searching for strings containing a linebreak using SearchText

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Searching for strings containing a linebreak using SearchText

Post by Sergey Tkachenko »

Sorry, it is not supported yet.
Post Reply