The Find/Replace Dialog Box

To open the Find/Replace dialog box, use the Find/Replace... action that is available in the Find menu, on the toolbar, or by pressing Ctrl F (Command F on OS X).

You can use the Find/Replace dialog box to perform the following operations:
Note: The Find/Replace dialog counts the number of occurrences of the text you are searching for and displays it at the bottom of the dialog, above the Close button. This number is also displayed in the Results view.
The find operation works on multiple lines, meaning that a find match can cover characters on more than one line of text. To input multiple-line text in the Find and Replace with areas, do one of the following:

You can use Perl-like regular expressions syntax to define patterns. A content completion assistant window is available in the Find and Replace with areas to help you edit regular expressions. It is activated every time you type \(backslash key) or on-demand if you press Ctrl Space (Command Space on OS X) on your keyboard.

The replace operation can bind regular expression capturing groups ($1, $2, etc.) from the find pattern.

To replace the tag-name start tag and its attributes with the new-tag-name tag use as Find the expression <tag-name(\s+)(.*)> and as Replace with the expression <new-tag-name$1$2>.

The dialog box contains the following options: