Hi.
I'd like to be able to put certain strings in a Word document, and then programmatically have everything between those strings removed. The following works, when STARTREPLACE and ENDREPLACE are on the same line.
RadFlowDocument document = provider.Import(inputFileStream); RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document); editor.ReplaceText(new Regex("(?<=STARTREPLACE)(.*)(?=ENDREPLACE)", RegexOptions.Singleline), string.Empty);
However when STARTREPLACE and ENDREPLACE are not on the same line, nothing happens.
Anyone have any idea how I can make this work over multiple lines - or if there's another approach which would be better?
Thanks in advance!
Dean