Re: parentheses find function
- From: Elliott Roper <nospam@xxxxxxxxx>
- Date: Wed, 11 Jul 2007 16:23:22 +0100
In article <1184164423.950910.35970@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Tim
<payton50325@xxxxxxxxx> wrote:
Does anyone know of a way to delete the contents inside parentheses? IYou don' need no steenkin' macros.
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
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.
--
To de-mung my e-mail address:- fsnospam$elliott$$
PGP Fingerprint: 1A96 3CF7 637F 896B C810 E199 7E5C A9E4 8E59 E248
.
- Follow-Ups:
- Re: parentheses find function
- From: Tim
- Re: parentheses find function
- References:
- parentheses find function
- From: Tim
- parentheses find function
- Prev by Date: parentheses find function
- Next by Date: word preferences problem
- Previous by thread: parentheses find function
- Next by thread: Re: parentheses find function
- Index(es):
Relevant Pages
|