Searching and replacing

You can search the current document, selected files, a directory, or an entire site for text, text surrounded by specific tags, or HTML tags and attributes.

To initiate a search:

1 Choose from the following options:
From the Document or Site window, choose Edit > Find or Edit > Replace.
From the HTML inspector, right-click (Windows) or Control-click (Macintosh) and choose Find or Replace from the shortcut menu.
2 In the Find or Replace dialog box that appears, use the Find In option to specify which files to search:
Current Document Confines the search to the active document. This option is available only when you choose Find or Replace from the Document window or from the shortcut menu in the HTML inspector.
Selected Files Confines the search to the files and folders that are currently selected in the Site window. This option is available only when you choose Find or Replace from the Site window.
Current Site Expands the search to all the HTML documents, library files, and text documents at the current site. The site name appears to the right of the pop-up menu. If this is not the site you want to search, choose a different site from the current sites pop-up menu in the Site window.
Folder Confines the search to a specific group of files. Click the folder icon to browse to and select the directory you want to search.
3 Use the Find What option to specify the kind of search you want to perform.
Text Lets you search for specific text strings in the Document window. A text search ignores any HTML that interrupts the string. See Searching for text in the Document window.
HTML Source Lets you search for specific text strings in the HTML source code. See Searching for text in the HTML source.
Text (Advanced) Lets you search for specific text strings that are either within or not within a tag or tags. For example, in a document that contains the HTML John <i>tries</i> to get his work done on time, but he doesn't always succeed. He tries very hard. searching for tries not inside i would find only the second instance of the word tries. See Searching for text between specific tags.
Tag Lets you search for specific tags, attributes, and attribute values, such as all TD tags with VALIGN set to TOP. See Searching for HTML tags and attributes.
4 Use one of the following options to expand or limit the search:
Match Case Limits the search to text that matches the case of the text you want to find. For example, if you search for the brown derby, you will not find The Brown Derby.
Ignore Whitespace Differences Treats all whitespace as a single space for the purposes of matching. For example, with this option selected, this text would match this text but not thistext. This option is not available when Use Regular Expressions is selected; you must explicitly write your regular expression to ignore whitespace.
Use Regular Expressions Causes certain characters (for example, ?, *, \w, and \b) in your search string to be interpreted as regular expression operators. For example, a search for the b\w*\b dog will match both the black dog and the barking dog. See About regular expressions.