View Single Post
  #3   Report Post  
Jay Freedman
 
Posts: n/a
Default

Archangel wrote:
I have many documents that I need to redact/remove text that lies
between [ ] brackets and replace it the text with XX. Is there a way
to do this?

EX:
blah blah blah blah blah [blah blah blah] blah blah blah.

would be replaced with -

blah blah blah blah blah [XX] blah blah blah.

Can anyone help?

Thanks,

Mike


See http://word.mvps.org/FAQs/General/UsingWildcards.htm.

The Find expression should be
(\[)(*)(\])

The Replace expression should be
\1XX\3

Don't forget to click More and check the "Use wildcards" box. Then click
Replace All.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org