Regex range replace not working

I use the following code that after a recent update no longer works



Dim regex As New Regex("(.*?)") 'used for bolding html tags in document

doc.Range.Replace(regex, New ReplaceEvaluatorFindAndHighlight(), False)



this used to work.

now, the text is bolded, but the first html tag is still displayed in the document.



anyone got any suggestions?



thanks

Gavin

Hi Gavin,

Thanks for your inquiry. Please provide information about the exact Aspose.Words' version number for which there were no problems on your side previously. And what version are you currently using? Also to ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document
  • Aspose.Words generated output document which shows the undesired behavior
  • Your expected document which shows the correct output. Please create this document using old version of Aspose.Words.
  • Please create a standalone Console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Best regards,