Replacing a String in a File

Use the Replace dialog box to replace a string in a file with another string.
  1. Click Edit > Replace. The Replace dialog box appears.
  2. Type the text that you want to replace into the Find what field. The default string is the last string you searched for.
  3. Type the text with which you want to replace the text in the Find what field into the Replace with field.
  4. Check the Case sensitive check box to make the search sensitive to the case of the text string. The default is to search with case sensitivity off.
  5. Set the direction for the search.
    • Select Up to have the search go from the current location of the cursor towards the top, or beginning, of the file.
    • Select Down to have the search go from the current location of the cursor towards the bottom, or end, of the file. This is the default direction.
  6. Click Find Next to locate the next occurrence of the text in the Find What field. If the search is successful, the first occurrence of the text string in the file is highlighted. If the search is not successful, an informational message displays.
  7. Click Replace to replace the next occurrence of the text in the Find What field with the text in the Replace with field.
  8. Click Replace All to replace every instance of the text in the Find What field with the text in the Replace with field.