|
Using Find and Replace: An Overview
Dreamweaver's Find and Replace is a powerful tool
you can use to search for specific text or HTML tags and to make changes to
that text or the tags within the document you are working on, within
selected documents, or throughout your website. This document discusses the
options found in the Find and Replace dialog box that you can use
to construct your query.
Accessing
the Find and Replace Dialog Box
-
To access the Find and Replace dialog box, from
the Edit menu, select Find and Replace...
OR
Press [Ctrl + [F]
The Find and Replace dialog box appears.
Where
You Can Search: Find In Options
The Find In pull-down list offers the following
options for searching:
|
Option |
Description |
|
Current Document |
searches only the open (active) document. |
|
Entire Current Local Site |
searches all files within the currently defined local
site. |
|
Selected Files in Site |
searches files you have selected from the currently
defined local site. |
|
Folder... |
searches a folder that you have selected. |
What
You Can Search For
The Search For pull-down list offers the following
options for searching:
|
Option |
Description |
|
Source Code |
searches for text strings in the code. |
|
Text |
searches for text, as displayed in the Design
view, in the specified document(s) . |
|
Text Advanced |
searches for text strings while allowing you to specify
tags that should or should not be included in the search. In other
words, you set conditions which act as a filter for the search. |
|
Specific Tag |
searches for a specific tag. You can also specify an
attribute of the tag. Replacement options for this type of search are
numerous, giving you a lot of control. For example, you can replace a
tag, replace the contents of a tag, strip a tag, set an attribute for
the tag, etc. |
Additional
Options for Defining Your Query
The following are additional options available in the
Find and Replace dialog box.
|
Option |
Description |
|
Match Case |
searches for text with the letter case as you type it.
For example, a search for History would not find
history. |
|
Ignore White Space Differences |
search treats all white space as one space. This can be
helpful when searching code. This option is selected by default. It is
mutually exclusive of the Use Regular Expressions option. |
|
Use Regular Expressions |
searches for text strings or patterns that you define
using special characters. For example using ^The, you
can search for lines that begin with The. Regular expressions
can be grouped or nested, adding a lot of power to your search. For a
complete list of characters, search for regular expressions in
Dreamweaver's Help.
This option is mutually exclusive of the Ignore White
Space Differences option. |
|