Windows – Removal of everything between two characters in Ms Word

microsoft wordregexwindows

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?

Best Answer

  • 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

  • Related Question