Reply
 
Thread Tools Display Modes
  #1   Report Post  
TJ
 
Posts: n/a
Default How can I replace single spaces with double spaces in a docume

I tried (?.)[^32]{1;2}([A-Z]) and got an error msg saying "The Find What text
contains a Pattern Match experssion which is not valid."

I also tried .^w and got an error saying "^w is not a valid special
character for the Find What box or is not supported when the Use Wildcards
check box is selected."

Could someone tell me what I'm doing wrong?

Thanks!

"Klaus Linke" wrote:

If you don't have tabs or non-breaking spaces, you can replace ".^w" with
". " (dot followed by two spaces).

..^w will match a dot and any following whitespace (= any number of spaces,
tabs, non-breaking spaces).

Of course, it'll also insert two spaces after abbreviations, abbreviated
first names and so on.

A bit selective would be a wildcard replacement, say
Edit Replace, check "More Match wildcards",
Find what: (?.)[^32]{1;2}([A-Z])
Replace with: \1^32^32\2

This will only match a dot followed by one or two spaces and a capital
letter (at the beginning of the next sentence).
It would miss sentences that start with a number for example, but won't
match abbreviations like "e.g." followed by small caps text.
You may need to do some proofreading or do the replacements one by one in
any case.

Regards,
Klaus


  #2   Report Post  
Jezebel
 
Posts: n/a
Default

Minor typo. {1,2} -- should be a comma not a semicolon between the numbers.




"TJ" wrote in message
...
I tried (?.)[^32]{1;2}([A-Z]) and got an error msg saying "The Find What
text
contains a Pattern Match experssion which is not valid."

I also tried .^w and got an error saying "^w is not a valid special
character for the Find What box or is not supported when the Use Wildcards
check box is selected."

Could someone tell me what I'm doing wrong?

Thanks!

"Klaus Linke" wrote:

If you don't have tabs or non-breaking spaces, you can replace ".^w" with
". " (dot followed by two spaces).

..^w will match a dot and any following whitespace (= any number of
spaces,
tabs, non-breaking spaces).

Of course, it'll also insert two spaces after abbreviations, abbreviated
first names and so on.

A bit selective would be a wildcard replacement, say
Edit Replace, check "More Match wildcards",
Find what: (?.)[^32]{1;2}([A-Z])
Replace with: \1^32^32\2

This will only match a dot followed by one or two spaces and a capital
letter (at the beginning of the next sentence).
It would miss sentences that start with a number for example, but won't
match abbreviations like "e.g." followed by small caps text.
You may need to do some proofreading or do the replacements one by one in
any case.

Regards,
Klaus




Reply
Thread Tools
Display Modes

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Replace to work BruceM Microsoft Word Help 5 February 22nd 05 02:49 AM
How do I get Word to stop putting extra spaces after a period whe. Wants a Manual I Can Hold In My Hand! Microsoft Word Help 2 February 2nd 05 01:27 AM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 06:47 PM
can any one help need template for double sided or single emplyee. ukwker Microsoft Word Help 2 December 28th 04 05:23 PM
Replace Single Space with Double Space John R. Baker New Users 3 December 11th 04 06:15 AM


All times are GMT +1. The time now is 12:22 PM.

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"