• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 12. Using Find and Replace > Finding Variations in a Name

Finding Variations in a Name

You can also look for variations in a name. For example, the company CEO is Richard Melton, but his name is misspelled throughout the site as Rick, Rich, Ricky, and so on. You want to make his name consistent and change it to Richard E. Melton.

1.
In the pattern_search.htm document, change Search For to Text in the Find and Replace dialog box. Type R\w* Melton in the Search For text box.

The \w searches for any alphanumeric character after the R, and the asterisk means you want to find any number of alphanumeric characters. Adding the last name Melton limits the search even further. If you leave off the last name, the search will also find “R2D2” in the document.

2.
In the Options, select Match Case and Use Regular Expressions.

This limits the search to finding only words that begin with an uppercase R.

3.
In the Replace With text box, type Richard E. Melton. Click Find Next to find the first occurrence, and then click Replace to change it.

The first version of the name is found in this document and replaced with Richard E. Melton.

4.
Click Replace All to find and replace the remaining names. Save the document.

You can close this document.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint