search and replace via api [closed]

asked 2014-03-02 22:56:58 +0100

immo gravatar image

Hi,

I have a paragraph in a text document to remove. But it seams to search via ^text$ is not sufficient and I need to expand the found text with one more character at the end. how can I do that ?

oSrch = oDoc.createSearchDescriptor oSrch.searchRegularExpression = True oSrch.setSearchString("^<removep>$")</removep>

Dim xFound As Object = oDoc.findFirst(oSrch)

But how to extend the range which is found ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2016-02-19 17:21:48.654224