Replace Text dialog box

Use the Replace Text dialog box to specify text you want to search for and then replace with other text (or with nothing).

To open the Replace Text dialog box, choose Search|Replace.

Dialog box options

Text to Find

Enter a search string; or, click the down arrow next to the input box to select from a list of previously entered search strings.

Replace With

Enter the replacement string; or, click the down arrow next to the input box to select from a list of previously entered search strings. To replace the text with nothing, leave this input box blank.

Options

Specifies attributes for the search strings.

Case Sensitive
Differentiates uppercase from lowercase when performing a search.

Whole Words Only
Searches for words only. With this option off, the search string might be found within longer words.

Regular Expressions
Recognizes regular expressions in the search string.

Prompt on Replace
Prompts you before replacing each occurrence of the search string. When Prompt on Replace is off, the editor automatically replaces the search string.

Direction

Specifies in which direction you want to search, starting from the current cursor position.

Forward
Searches from the current position to the end of the file. Forward is the default Direction setting.

Backward
Searches from the current position to the beginning of the file.

Scope

Determines how much of the file is searched.

Global
Searches the entire file, in the direction specified by the Direction setting. Global is the default scope.

Selected Text
Searches only the selected text, in the direction specified by the Direction setting. You can use the mouse or block commands to select a block of text.

Origin

Specifies where the search should start.

From Cursor
The search starts at the cursor's current position, and then proceeds either forward to the end of the scope, or backward to the beginning of the scope depending on the Direction setting. From Cursor is the default Origin setting.

Entire Scope
The search covers either the entire block of selected text or the entire file (no matter where the cursor is in the file), depending upon the Scope options.

Replace All

Replaces every occurrence of the search string. If you have checked the Prompt on Replace option, the Confirm dialog box appears on each occurrence of the search string.

See also:
User's Guide: Finding and replacing text