bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Formatting > Searching for Formatting > Searching for Periods Not Followed by a Space

Searching for Periods Not Followed by a Space

Summary: Most periods should be followed by at least one space. What if you think there may be some errors in how your post-period spacing appears? You can use the search techniques presented in this tip to locate the problem areas. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

If you work with documents produced by other people, you may notice some common mistakes in those files. Many common mistakes are easy to correct, but what if you get a document where there are instances of spaces left out after periods. For instance, the document may contain "Mr.Davis" instead of "Mr. Davis" or "Feb.is" instead of "Feb. is." At first glance, you may think that there is no easy way to insert the missing spaces in the proper place.

Actually, there are a couple of different approaches you can take. The first approach is to just do a spell check of the document. Chances are good that most instances of a missing space after the period will be caught, and you can correct them as necessary.

The second approach involves doing two regular find and replace operations. Follow these general steps:

  1. Press Ctrl+H to display the Replace tab of the Find and Replace dialog box. (Click here to see a related figure.)
  2. In the Find What box, enter a period.
  3. In the Replace With box, enter a period followed by a space.
  4. Click on Replace All. (The Find and Replace dialog box should remain open after the replacements are completed.)
  5. In the Find What box, enter a period followed by two spaces.
  6. In the Replace With box, enter a period followed by one space.
  7. Click on Replace All.
  8. Close the Find and Replace dialog box.

When done, there will be a single space after every period in the document. There are a couple of large drawbacks to this approach, however. First of all, if your document contains decimal numbers, you will end up with things like "123. 45" instead of "123.45." Second, if a sentence originally ended in a period and a quote mark, you will end up with a space between the two characters. Third, you will end up with a space after every period that ends a paragraph.

The solution to these problems (and a way to perform the changes in a single find and replace operation) is to use wildcards. Try these steps:

  1. Press Ctrl+H to display the Replace tab of the Find and Replace dialog box.
  2. Click the More button, if it is available.
  3. Make sure the Use Wildcards check box is selected.
  4. In the Find What box, enter ".([A-z])" (without the quote marks).
  5. In the Replace With box, enter ". /1" (again, without the quote marks).
  6. Click on Replace All.
  7. Close the Find and Replace dialog box.

To understand what is happening in this example, it is best to understand what is being searched for and what it is being replaced with. In step 4, you are searching for a period followed by any uppercase or lowercase letter. By definition, this automatically excludes any periods followed by spaces, numbers, or other punctuation marks. In step 5 you are replacing any matched occurrences with a period, followed by a space, and then the letter found in the match. (The /1 characters means that Word should use whatever is in the first sent of parentheses in the Find What box, which happens to be the uppercase or lowercase letter.)

One final note: Regardless of which find and replace technique you use, you need to be on the lookout for improper replacements made where the period really should be followed by a letter—such as replacing "e.g." or "i.e." with "e. g." and "i. e."

Tip #1908 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007


Take Control! Master the real power behind Word! Successfully master the secrets of powerful formatting and create documents that stand out from the rest. Best of all, you can create documents that are easy to maintain and quick to change.
 
Check out Word 2007 Styles and Templates today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)