Example of Find and Highlight in ASP.NET Core Word (DocIO) Library

Word (DocIO)
Editing
Find and Highlight
This sample demonstrates how to find a specific text pattern using regular expression and highlight it in an existing Word document using Find functionality of Essential Word (DocIO) library.
Click the button to view the generated Word document. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document.
Regular expression to find the text
Save As :    
 
DocIO allows you to find the text in the Word document and then to manipulate it.
  • You can find the first occurrence or all the occurrences of the text in the Word document.
  • You can find the static text or text pattern using regular expression.
  • You can find the text by matching case, whole word and all occurrence or first occurrence alone.
  • You can also find the content that spans across several paragraphs.
More information about the Find functionality can be found in this Documentation section.
Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab