Is there a way to remove sections of a document where i can specify the beginning and ending tags?
i need a way that i can remove a section of the document by passing in both my start and end catches, (@@DELETEBEGIN and @@DELETEEND)
for example i have this in my document:
Hello, welcome to this document
@@DELETEBEGIN{Some values to check in the code}
Some text that will be removed if the value is true
@@DELETEEND
Final Line
If you need to delete text from @@DELETEBEGIN to @@DELETEEND, where @@DELETEBEGIN is not at the beginning of a
Paragraph
and @@DELETEEND is not at the end of aParagraph
, this code should work.I have to give some credit to this post for looping through each word.