To open the search dialog box, do one of the following:
This dialog box searches and replaces text in your file. You can open a search dialog box for each file you are editing.
Enter the desired text or search string in the field next to the Find button. To search for control characters such as a tab, use the Quote command to enter them correctly. This command is invoked by pressing Ctrl+\. For example, if you want to search for a tab, press Ctrl+\ and then press Tab. You can copy and paste special characters from an Editor window.
To replace text, enter the desired text or replace string in the field next to the Replace button.
The Editor searches the current location in the file towards the end of the file for a forward search, and toward the top of the file for a backward search. If the search string is not found before it reaches the end or the beginning, it prints a message and stops. If you start again, it resumes the search from the beginning or the end of the file.
There are six buttons in the search window:
Searches for and highlights the next occurrence of the search string. Simply pressing Enter also searches for the next occurrence.
Replaces the current selection with the replace string.
Replaces the current selection and then searches again.
Searches for the next occurrence of the search string, and replaces it with the replace string if found.
Starts at the beginning of the file and replaces all occurrences of the search string with the replace string.
Undoes the last Editor command.
There are a number of check boxes, which click on and off, and several radio buttons, small circles that either contain a solid dot for "on," or are empty for "off." Radio buttons are in sets, and only one turns on at a time. The check boxes and radio buttons include:
Determines whether the search proceeds forward or backward.
Determines whether case should be matched. If Exact is on, then only strings that exactly match the case are found. For example, Fly matches Fly, but not fly or FLY. If Either is on, then case is ignored. For example, Fly matches both fly and FLY.
If only StartsWord is on, then the search string must appear at the beginning of a word. For example, fly matches fly or flybat, but not batfly.
If only EndsWord is on, then the search string must appear at the end of a word. For example, fly matches fly or batfly, but not flybat.
If they are both on, then the string must form a complete word. For example, fly matches fly, but not flybat or batfly.
If neither is on, then any occurrence of the string is found.
These are similar to StartsWord and EndsWord above, except they apply to the beginning and end of a line.
If this is on, then there are no special characters; that is, characters only match themselves.
If this is on, then the following characters have a special meaning in the search string:
? Matches any single character except a newline.
* Matches any number of characters except newlines.
If this is on, then the following characters have a special meaning in the search string. In this description, a regular expression is an expression using any combination of the following special characters. Note that you cannot match a newline.
a.d matches and, a d, and aud. a.*d matches ad, are d, and abd. <and matches and, but not stand. are|is matches either are or is. (are|is)* bad matches are bad, is bad, areisare bad, and bad. |
The settings in this dialog box set the defaults for the next quick search.