We have one strange issue when searching for a word and replacing it. We have tested this in Aspose.Words latest 184.108.40.206 version, and I have attached the sample code, input file and expected file.
If you look into the attached input file “Template1.docx” the words Variable.name and Variable.city are separated by new line (pressing Enter key in keyboard), and Variable.city and Variable.zip are separated by Shift+Enter from keyboard. Only Variable.name is finding and replacing, the rest are not.
Can you please tell us what was the work arround without modifying the template?
Template1.zip (65.0 KB)