Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default What are the gotchas?

I just tried what seems to me like a too-simple way to replace two or more
spaces after a word or the end of a sentence, and that is to search for white
space (^w) and replace with one space by just pressing the space bar once in
the replace box.

It seems too good to be true, so before I adopt this approach, please tell
me what could go wrong, assuming the material is just regular paragraphs of
text.

Thanks!
  #2   Report Post  
Posted to microsoft.public.word.newusers
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default What are the gotchas?

On Mon, 27 Oct 2008 13:36:39 -0700, Island Girl
wrote:

I just tried what seems to me like a too-simple way to replace two or more
spaces after a word or the end of a sentence, and that is to search for white
space (^w) and replace with one space by just pressing the space bar once in
the replace box.

It seems too good to be true, so before I adopt this approach, please tell
me what could go wrong, assuming the material is just regular paragraphs of
text.

Thanks!


The only thing that occurs to me is this: the white space code ^w matches both
spaces and tab characters. So if your document contains one or more tabs and
spaces together, in any order, then the replacement will turn that into a single
space. If you were counting on the tabs to align text, you won't get that effect
any more.

If you want to be sure you're changing only occurrences of multiple spaces,
click the More button and check the box for "Use wildcards". Then use the search
term

[ ]{2,}

(with a space between the brackets) and replace with a single space character.


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default What are the gotchas?

I hadn't thought of that, Jay. I always value your input and will certainly
take your suggestion. Thanks!

"Jay Freedman" wrote:

On Mon, 27 Oct 2008 13:36:39 -0700, Island Girl
wrote:

I just tried what seems to me like a too-simple way to replace two or more
spaces after a word or the end of a sentence, and that is to search for white
space (^w) and replace with one space by just pressing the space bar once in
the replace box.

It seems too good to be true, so before I adopt this approach, please tell
me what could go wrong, assuming the material is just regular paragraphs of
text.

Thanks!


The only thing that occurs to me is this: the white space code ^w matches both
spaces and tab characters. So if your document contains one or more tabs and
spaces together, in any order, then the replacement will turn that into a single
space. If you were counting on the tabs to align text, you won't get that effect
any more.

If you want to be sure you're changing only occurrences of multiple spaces,
click the More button and check the box for "Use wildcards". Then use the search
term

[ ]{2,}

(with a space between the brackets) and replace with a single space character.


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:57 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"