6

I need a pattern to remove everything between the "<" and ">" characters. An example would be:

<blah blah blah>Something I want <blah blah>really bad<blah blah>

becomes

Something I want really bad

How would I go about doing this? I have looked up the word search patterns and tried using them (to no avail). If Word won't do it, is there an online tool that could?

barlop
  • 25,198

1 Answers1

7

I need a search pattern to remove everything between the "<" and ">" characters.

  • Set "Find What" to \<(*{1,})\>

  • Set "Replace with" to an empty string.

  • Check "Use wildcard"

Notes:

  • < and > are special characters that need to be escaped using \
  • * means any character
  • {1,} means one or more times

Further reading

barlop
  • 25,198
DavidPostill
  • 162,382