Search code examples
c#asp.netregexc#-4.0office-interop

Generate Regex to find strings with following condition


Please suggest me regex pattern for the string like below: <[XYZ-ABC]>

I have to find these strings using Microsoft.Office.Interop.Word and then save the search string in database.

Thanks for any help provided.


Solution

  • Got one answer please let me know if its correct:

    <[^/>]*>