IBM 15 用户手册

下载
页码 270
124
Chapter 7
Figure 7-12
Find/Replace dialog box
E
With the cursor in a text area, press Ctrl+F to access the Find/Replace dialog box.
E
Enter the text you want to search for, or choose from the drop-down list of recently searched items.
E
Enter the replacement text, if any.
E
Click
Find Next
to start the search.
E
Click
Replace
to replace the current selection, or
Replace All
to update all or selected instances.
E
The dialog box closes after each operation. Press F3 from any text area to repeat the last find
operation, or press Ctrl+F to access the dialog box again.
Search Options
Match case.
Specifies whether the find operation is case-sensitive; for example, whether myvar
matches myVar. Replacement text is always inserted exactly as entered, regardless of this setting.
Whole words only.
Specifies whether the find operation matches text embedded within words. If
selected, for example, a search on spider will not match spiderman or spider-man.
Regular expressions.
Specifies whether regular expression syntax is used (see next section). When
selected, the
Whole words only
option is disabled and its value is ignored.
Selected text only.
Controls the scope of the search when using the
Replace All
option.
Regular Expression Syntax
Regular expressions allow you to search on special characters such as tabs or newline characters,
classes or ranges of characters such as through d, any digit or non-digit, and boundaries such as
the beginning or end of a line. The following types of expressions are supported.
Character Matches
Characters
Matches
x
The character x
\\
The backslash character
\0n
The character with octal value 0n (0 <= n <= 7)