Re: parentheses find function

Tech-Archive recommends: Speed Up your PC by fixing your registry



In article <1184164423.950910.35970@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Tim
<payton50325@xxxxxxxxx> wrote:

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.

--
To de-mung my e-mail address:- fsnospam$elliott$$
PGP Fingerprint: 1A96 3CF7 637F 896B C810 E199 7E5C A9E4 8E59 E248
.



Relevant Pages

  • parentheses find function
    ... Does anyone know of a way to delete the contents inside parentheses? ... would like to make some macro that would go through a document and ... Reivich, Jaycox, & Seligman, 1995) out of a document. ... Tim ...
    (microsoft.public.mac.office.word)
  • Re: C99: Suggestions for style(9)
    ... because it does not improve maintainability in any way. ... There is no source for confusion here, so the rule even contradicts the rule, which states not to use redundant parentheses. ... so it is clear that there is a macro at work. ... the parentheses are not redundant) would be for local debugging ...
    (freebsd-hackers)
  • Re: Casting the return value of malloc()...
    ... If the operand is a macro, and the macro is defined in such a way that ... parentheses are necessary, *fix the macro definition*. ... enclose the operand in parentheses or omit the parentheses. ... Idiom is more robust. ...
    (comp.lang.c)
  • Re: rvalue
    ... >The outer parentheses surrounding the entire macro definition are ... >necessary (and the original version of the macro had them). ... >referring to parentheses around each parameter reference within the ... >certain about the parentheses surrounding mw; ...
    (comp.lang.c)
  • Re: Userform help needed
    ... This has me heading in the right direction, ... > Same link as above Tim, ... >> and then run Ron's macro. ... >>> N7 gets incident number from a cell on another sheet and that data is ...
    (microsoft.public.excel.programming)