A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What are the gotchas?



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2008, 08:36 PM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old October 27th, 2008, 11:50 PM posted to microsoft.public.word.newusers
Jay Freedman
external usenet poster
 
Posts: 9,488
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  
Old October 28th, 2008, 01:41 AM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.