-1

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?

Kevin
  • 318
  • 2
  • 6
  • 25

1 Answers1

2

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

<[^>]*>
Mark Jeronimus
  • 9,278
  • 3
  • 37
  • 50
  • Since you're using a negated character class, you can even modify your quantifier to be possessive, which is a performance enhancement: `<[^>]++>` should work... or `<[^>]*+>`, but I doubt you have XML markup that looks like `<>content>` so `+` is preferable to `*`. – wpcarro Aug 19 '16 at 18:01
  • `<[^>]□+>` is invalid in TextPad, which is not fully RegEx compliant – Mark Jeronimus Aug 20 '16 at 09:05