find and replace with nothing

Y

Yans Kasso

Hi,

Is there a way to find a word in a document that is used
repetitively and then replace that word with nothing.

I can get this to work in terms of the chosen word does
disappear but the space that the word took up remains.
What I am trying to do is close this gap without having
to manually go through the document to do this.

For example if I have the words "SOUNDS LIKE" in a
document 200 times and I replace it with nothing there
will be 11 empty spaces where the words "SOUNDS LIKE"
were.

So using this sentence as an example the sentence looks
like this "SOUNDS LIKE" before the replace... and like
this after. (see below)

So using this sentence as an example the sentence looks
like this before the replace... and like
this after.

You see the big gap. I would like to close that up to one
space.

Thanks for your help.
 
D

Doug Robbins - Word MVP

Hi Yans,

In the Find what box include a space after the word(s) so that you are
looking for

"SOUNDS LIKE "

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 
Y

Yans Kasso

Thanks for the input. It's still not working though. I
can get rid of space if it's in a sentence but I'm trying
to get rid of paragraph space. If I pull out a whole line
I'd like the whole line to vanish and close the paragraph
gap. Maybe this isn't possible.

Let me know if anyone has any ideas.

Thanks.
 
G

Graham Mayor

You can select any text with wildcards provided it can be uniquely
identified.
From what you have told us already, the text could be followed by a space,
or it could be followed by a paragraph mark - presumably it could be
followed by a full stop (period) also? You can add all these into the search
and if you might have a space and a period and/or a paragraph mark you can
search for that also.

SOUNDS LIKE[ .^13]{1,}

See http://www.mvps.org/word/FAQs/General/UsingWildcards.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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