
124
Chapter 7
Figure 7-12
Find/Replace dialog box
E With th e cursor in a text area, pr ess Ctrl+F to access the Fi nd/Replace dialog box.
E Enter the tex t you want to search for, or choose from the drop-down list of recently searched items.
E Enter the replacement text, if a ny.
E Click Find Next to start the search.
E Click Replace to replace the current selectio n, 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 acc ess the dialog box again.
Search Options
Match case.
Specifies whether the find ope r ation is case-sensitiv
e; 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 wit hin words. If
selected, for example, a search on spider will n ot 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 a nd its value is ignored.
Selected text only.
Controls the s cope of the search when using the Replace All option.
Regular Expression Syntax
Regular expressions allow you to search on special characters such a s tabs or newline characters,
classes or ranges of characters such as a through d, any digit or n on-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)
Commenti su questo manuale