Search and replace problem

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.
 
G

Graham Mayor

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

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

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
 

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