Hi,
I follow the examples from Aspose Examples Dashboard. To replace the text, I can
Regex regex = new Regex(“search Text”, RegexOptions.None);
wordDoc.Range.Replace(regex, “new Text”);
Is there any method I can test if I can find the search text?
Thanks
Hi Alfred,
Thanks for your inquiry. You can achieve your requirement by implementing
IReplacingCallback interface. Please use the same approach shared at following documentation link to find the text.
Please also read the following article about ‘Find and Replace’ from here:
Hope this helps you. Please let us know if you have any more queries.