View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Wild Cards in Find and Replace to put two spaces after periods

NMcAloon wrote:
Someone told me to use the following in Find and Replace in order to
get two spaces after periods and colons, where the succeeding
character is a capital letter.
Find: ([.:]) ([A-Z])
Replace: \1 \2

This is so not working for me. Any suggestions or any correction to
the method above? Thanks!


It doesn't work because the replace string puts back the found string
exactly as it was before.

If you want to remove two spaces and replace with one add an extra space in
the search string
([.:]) ([A-Z])
and leave the replace string

or if you want to add an extra space leave the search string and put the
extra space in the replace string
\1 \2

http://www.gmayor.com/replace_using_wildcards.htm
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org