We’re evaluating your latest version of Aspose.Words for .Net.
There is a Table that exists in a Word doc. In this table, for a particular cell we would like to execute a search and replace where the text being searched can contain line breaks like \r. The Range.Replace function does not allow for special characters like \r, so we tried using the Replace method with a Regex and a ReplaceEvaluator which partially works. The issue is the line breaks like \r are being left in the text.
I have attached a sample doc. The doc contains one table with 3 columns. Column number 2 and 3 contain line breaks. Lets say I want to do a search and replace on column 2 for “[HRA] [HSA]\r” and replace it with “HRA” how would I go about doing that?
Right now the result of our Replace execution is “HSA\r” instead of “HSA”.
Sample.zip (11.4 KB)