Search and Replace Commands

Return to Introduction  Previous page  Next page

Control

Function

Search a Text String

Use this function to locate a string of characters in the current file. The editor searches for the first instance of the given character string. To find the subsequent instances of the same character string, use the Search Forward or Search Backward commands.

To invoke this function, press [F5] or select the option from the menu. The editor displays a dialog where you can enter the character string to locate. You can specify the search to be in a backward or forward direction from the current cursor position, or you can specify the search to take place from the beginning of the file.

You can also force a non-case-sensitive search, in which case the string is matched irrespective of the case of the letters in the string.

Search Forward

Use this function to locate the next instance of a previously located string, using the Search Function. If the Search Function is not yet invoked, this function calls the Search Function instead.

To invoke this function, press [Ctrl]+[F], or select the option from the menu.

Search Backward

Use this function to locate the previous instance of a previously located string using the Search Function. If the Search Function is not yet invoked, this function calls the Search Function instead.

To invoke this function, press [Ctrl]+[Shift]+[F], or select the option from the menu.

Replace a Text String

Use this function to replace a character string with another character string.

To invoke this function, press [F6], or select the option from the menu. The editor displays a dialog where you enter the old and new character strings.

You can also conduct the replace only within a selected part of the file. To replace such a block of text, the required text must be highlighted before invoking the replace function.

The dialog also has an option to force the editor to verify each replace.