Replacing text in the text editor
To replace a text string with another string, you use the Find and Replace command.
To replace a text string:
-
From the Edit menu, select Replace...
-
The editor Find and Replace dialog appears with the Replace tab selected.
-
Type the text that you want to change in the Find what box. A history of previously searched words is available by clicking the Find List button.
-
Type the text that you want to replace it with in the Replace with box. A history of previously replaced words is available by clicking the Replace List button.
-
Change search options (see below) if required.
-
Click Replace to replace the first occurrence of the searched text, or Replace All to replace all occurrences.
Search Options
The Search box allows you to select the search mode:
-
All searches for the first occurrence from the beginning of the file.
-
Selected searches through selected text only.
-
Forward and Backward specify the direction of the search, starting at the current cursor position.
-
Match case restricts search criteria to the exact same case.
-
Match whole word only restricts the search to complete words.
-
Use regular expression allows you to specify UNIX-like regular expressions as search criteria.
Related Topics
About the Text Editor | Finding Text in the Text Editor | Locating a Line and Column in the Text Editor