-1

I'm new to regex in general. What is the best way to remove a string inside of < >.<string>body<string>

Kirikaz
  • 1
  • 3

1 Answers1

2

You can use this

<[^>]+>

  • < - Matches <
  • [^>]+ - Match anything except >. one or more time.
  • > - Matches >.

Demo

Code Maniac
  • 37,143
  • 5
  • 39
  • 60