To find and replace text, follow these steps:
Click on the Replace button on the toolbar or select the Replace command from the Edit menu. The "Replace" dialog is displayed. This is very similar to the "Find" dialog (see Finding text) and allows you to determine how text will be matched and the direction of search. However, there are some additional features specific to Replace.
In the Replace With box, type the text or phrase you wish to replace the found text with (or you can paste it in from the clipboard if it has been previously copied). There is also the option to set the style of the replacement text in the Style box.
When all is set, click on the Replace button to find the next occurrence of the find text. Click on Replace again to replace the found text and move on to the next occurrence of the find text, and so on till you reach the end of the document or no longer wish to proceed. Alternatively, click on the Replace All button to replace all occurrences in the document of the find text with the replace text. If no matching text is found for replacing, a message is displayed saying that the search was unsuccessful.
While in the "Replace" dialog you can also choose to search for text without replacing. Click on Find Next to do this and ignore any text that may have been placed in the Replace With box. If you find text using the Replace button and you decide that you don’t want to replace a particular occurrence of the text, then just use Find Text. Switch back to Replace when you are ready to replace some text.
See also: