Re: How do i find and replace words in parenthesis?



Only problem is that this will convert any bracketed text and not merely
your chord numbers.
Search instead for
\([a-zA-Z0-9]{1,}\)
Replace with
^& format font red

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Bob in Arizona wrote:
Exactly what I needed! Thanks

"Phil Rabichow" wrote:

Hi Bob:
1. Press Ctrl+H to bring up Find/Replace dialog box.
2. In the find box, type
\(*\)
3. click in the replace box, go to Format/Font & change it to red.
Leave the replace box blank. Under it, it will say Format: Font
color: Red
4. Click "Use wildcards"
5. Click Replace all.

The "\" tells Word to treat an operator (like parenthses) as just a
character. Therefore, \( finds the opening paren, the "*" says to
find everything after that up to \), which is the closing paren.
--
Hope this helps.

Phil
To assist in maintaining the thread for others who are interested,
please post any follow-up question or reply in the newsgroup and not
directly to me:-)

Bob in Arizona wrote:

I play guitar and have several files with the chord names in
parenthesis. Ex. A (B)child arrived just the (D)other day... Using
find and replace with special characters, I need to find all
letters and numbers enclosed in parenthesis (including the
parenthesis characters) and change the font color to red in order
to highlight the chords. Does anyone know the special character
string that will find all occurrances of text within parenthesis
(including the Parenthesis Marks) and replace with an alternate
text color?


.



Relevant Pages

  • Re: Convert text with special characters
    ... > Are you saying you could format the font character by character in one of the ... I did not mean that I could format font to font. ... import/export text with special characters and could not get it to work. ...
    (microsoft.public.excel.programming)
  • Re: Pickle Problem
    ... Here's the code I'm stuck on ... format, but you don't open the file in binary mode. ... Sure enough, it was the parenthesis. ... about the binary format for opening files. ...
    (comp.lang.python)
  • Re: Parsing a chemical formal
    ... > Abigail wrote: ... ;-) Actually it's not an exercise, the perlscript should format Database ... > parenthesis: for instance Fe3. ... You can do this by first capturing ...
    (comp.lang.perl.misc)
  • Re: What is a 12 point font?
    ... The point size refers to the overall height including the ascenders and descenders (tails up on letters like bdfhl and down like gjpqy) and any ... It's rather the baselineskip (which is not the size of the font). ... The baselineskip setting has no ... If I'm right, a parenthesis in the body of metal don't extend on the whole piece: there is a gap below and above the parenthesis. ...
    (comp.text.tex)
  • Re: reading file to list
    ... data for his programs in the format ... parenthesis in your data file, making it larger for no good reason, ... no good reason, then it would make no sense, I agree. ... The lisp reader by ...
    (comp.lang.lisp)