Search code examples
regextextpad

Textpad Regular expressions: Find and remove everything between < >


I am trying to use textpad to remove all XML so I am left with the text. If I can remove everything that falls between a < and a > then I can do it. What is the expression what I need to use in the "Find What" box in the find and replace function in textpad?


Solution

  • Assuming < and > don't occur in string properties of tags, try this:

    <[^>]*>