124
Chapter 7
Figure 7-12
Find/Replace dialog box
EWiththe cursor in a text area, press Ctrl+F to access the Find/Replace dialog box.
EEnter the text you want to search for, or choose from the drop-down list of recently searched items.
EEnter the replacement text, if any.
EClick Find Next to start the search.
EClick Replace to replace the current selection, or Replace All to update all or selected instances.
EThe dialog box closes after each operation. Press F3 from any text area to repeat the last nd
operation, or press Ctrl+F to access the dialog box again.
Search Options
Matchcase. Species whether the nd operation is case-sensitive; for e xample, whether myvar
matches myVar. Replacement text is always inserted exactly as entered, regardless of this setting.
Wholewords only. Species whether the nd operation matches text embedded within words. If
selected, for example, a search on spider will not match spiderman or spider-man.
Regularexpressions. Species whether regular expression syntax is used (see next section). When
selected, the
Whole words only option is disabled and its value is ignored.
Selectedtext 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 athrough d, any digit or non-digit, and boundaries such as
the beginning or end of a line. The following types of expressions ar esu pported.
Character Matches
Characters Matches
xThe character x
\\ The backslash character
\0n The character with octal value 0n (0 <= n <= 7)