I am processing an RTF document to do some find and replace operations using aspose words. For this purpose i am using the function document.getRange().replace() . It works fine in all cases except in replacing line ending dot (.). For example i am trying to replace N.V. with NV but it just replaces one dot and i have NV. as an output
Thd code i tried was
newdoc.getRange().replace("N.V.", "NV", false, true);
and
newdoc.getRange().replace(".", "", false, true);