Graham, thanks more than I can say for your additional
input. I feel so stupid each time I let the exclamation
point in a string throw me, but it never fails to do so.
I'm still not the sharpest tool in the shed when it comes
to find and replace, but I'm a million times better since
reading the wonderful article by you and Jay. I'll keep
trying to better understand the ! .
Thanks again!
-----Original Message-----
Jay Freedman wrote:
I assume that when you find two spaces between words, you then
want to replace them with a single space. To do that, modify the
Find What expression to
([!.])<space><space>
and use the Replace With expression
\1<space>
The \1 part will be filled in with whatever character matched the
[!1], and the two spaces will be replaced with one space.
Or ..... you could move the bracket
([!.]<space>)<space>
and replace with
\1
Or...... if you may have more than two spaces
you could search for
([!.]<space>)<space>{1,}
Personally I like to square bracket spaces so they are not missed -
but the square brackets are not necessary to make the search string
work.
([!.][ ])[ ]{1,}
and replace with
\1
--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
Web site
www.gmayor.com
Word MVP web site
www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
.