parentheses find function

T

Tim

Does anyone know of a way to delete the contents inside parentheses? I
would like to make some macro that would go through a document and
delete stuff like (Steinberg & Lerner, 2004) and (e.g., Gillham,
Reivich, Jaycox, & Seligman, 1995) out of a document. I am using Word
2004 on Mac 10.4.10. thanks. Tim
 
E

Elliott Roper

Tim said:
Does anyone know of a way to delete the contents inside parentheses? I
would like to make some macro that would go through a document and
delete stuff like (Steinberg & Lerner, 2004) and (e.g., Gillham,
Reivich, Jaycox, & Seligman, 1995) out of a document. I am using Word
2004 on Mac 10.4.10. thanks. Tim
You don' need no steenkin' macros.

Wildcard search and replace will do what you want. What you are
probably missing is a way to tell Word that you mean ( and ) literally,
since search want to use those characters as expression delimiters.
It is probably not the official way, but using the "any one of"
construct with only a ( or an ) inside the square brackets works for
me.
e.g. Find what: [(]*[)]
should find all strings enclosed in parentheses and their parentheses.
Replace with:? Well, leave that empty.
Smack "Replace All" with a light deft flick of the mouse, and there ya
go. Your document is in ruins.
Seriously. Try this on a copy. You are guaranteed to delete a
parenthetical remark that was not a reference to a publication in child
psychology.
For extra credit, and to lessen the probability of doing so, modify
your search string so there has to be a 4 digit date immediately
preceding the ).
Word Help, searching for "wildcard search" will give you more detailed
information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top