Can any one please help me in solving the below problem?
Aspose.Words.Document mainDoc = new Aspose.Words.Document(templatedocpath); mainDoc.Range.Replace(new Regex("\[#\w+#]"), ""); mainDoc.Save(templatedocpath);
the token strings will be like
[#test#] and so on…
What i need is to do is to replace this token with empty and if there is no text following to it on the same line then need to remove that entire line.
Any help on this is most appreciative.