Search and replace problem

  • Thread starter Thread starter Brian Clarke
  • Start date Start date
B

Brian Clarke

Notice that in the extract I have quoted below there is no space after
the ")". For presentational purposes, I need to insert a space, but I am
working with large amounts of text, and I would like to use Search &
Replace.

I can't see how to do this. I need to replace ")" followed by any
non-space character with ")", then a space, then the same non-space
character. Is there any way of doing that?

I use Word 2003 and 2000, both on XP.


(1)companies which were dormant at the inception of the 2004 regime;

(2)most small enterprises; and

(3)most medium-sized enterprises, with reservation.
 
With the wildcard option set replace
(\([0-9]{1,}\))
with
\1<space>
where <space> is a press of the spacebar

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
For just these numbered items, could you use a different approach? Try this:

Find what: (^#)

Replace with: ^&<space>

where <space> represents a space character. If this results in two spaces
after some parentheses, you can always make another run and replace two
spaces with one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
Back
Top