Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Searching for Periods Not Followed by a Space.

Searching for Periods Not Followed by a Space

Written by Allen Wyatt (last updated February 12, 2022)
This tip applies to Word 97, 2000, 2002, and 2003


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. (See Figure 1.)
  2. Figure 1. The Replace tab of the Find and Replace dialog box.

  3. In the Find What box, enter a period.
  4. In the Replace With box, enter a period followed by a space.
  5. Click on Replace All. (The Find and Replace dialog box should remain open after the replacements are completed.)
  6. In the Find What box, enter a period followed by two spaces.
  7. In the Replace With box, enter a period followed by one space.
  8. Click on Replace All.
  9. 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."

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1908) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Searching for Periods Not Followed by a Space.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Pointing PivotTables to Different Data

Changing the data source PivotTables go to can be a bit tricky. This tip explains what can happen when you re-point your ...

Discover More

Adjusting Shadow Settings

Insert a graphic into a document and Word allows you to add a shadow behind the graphic. You can also adjust the ...

Discover More

Turning Off "Link to Previous" by Default

When you add a new section to a document, you may want the headers or footers in that section to be different from those ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Searching for Text Not Using a Certain Style

Word is very flexible in what it allows you to search for. One thing it can't do, however, is allow you to search for ...

Discover More

Adding Tags to Text

The Find and Replace capabilities of Word can be used to add HTML tags to your document text. This is easier to do than ...

Discover More

Selective Formatting using Find and Replace

The Find and Replace tool in Word allows you to check for formatting in what you search for and use formatting in your ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.