I am working in a word document and i have to replace some texts, so i use Replace activities inside a Word Application Scope.
I have for example a new line than some text than a new line… and sometimes i need to delete that “some text” and i am ending up having a word document with like 3 new lines between some texts, so i have multiple texts and multimple lines… so this is approximetly what it’s look like:
Some text1
Some text2
Some text3
Some text4
…
And then if i delete for example Some text2 using the Replace activity saying Replace Some text2 with String.Empty i am getting this:
Ok, new lines can be found by using the string “^|” so if i wanted to remove all line breaks in a word doc i would do:
Please find the time to adjust this info to your needs