2 Domain Hosting

Web Site Design | Web Site Promotion | Web Hosting | Domain Name Registration

Using Find and Replace: Text (Advanced)

Dreamweaver's Find and Replace is powerful tool you can use to search for text strings while specifying 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.

This document discusses how to do an advanced text Find and Replace and uses the example of changing the text helpdesk to Help Desk.

The Replace feature is useful when you want to change the same piece of information (text or tags) throughout a document(s). Use it to replace each occurrence of the information individually. Clicking FIND NEXT will advance to and review subsequent occurrences.

WARNING: Use the Replace All option with caution! This option will replace your specified information throughout an entire document(s).

  1. From the Edit menu, select Find and Replace...
    OR
    Press [Ctrl + [F]
    The Find and Replace dialog box appears.
  2. From the Find In pull-down list, select an area to search
    For a description of these options, see Where You Can Search: Find In Options.
    EXAMPLE: Select
    Entire Current Local Site
  3. From the Search For pull-down list, select Text (Advanced)
  4. In the Search For text box, type the text you are searching for
    EXAMPLE: Type
    helpdesk
  5. To restrict your search, from the pull-down list, select Inside Tag or Not Inside Tag as appropriate
    EXAMPLE: Select
    Not Inside Tag
  6. From the Tag pull-down list, select the tag to include/exclude
    EXAMPLE: Select a
    Links are contained within the <a> tag. In this example helpdesk may appear in links to the Help Desk website or as part of an email link. By excluding the <a> tag we will avoid breaking these links.
  7. OPTIONAL: You can set additional restrictions by clicking ADDadd buttonand repeating steps 5 and 6
    NOTE: To remove a restriction, click
    MINUSremove button
  8. In the Replace With text box, type the replacement text
    EXAMPLE: Type
    Help Desk
  9. OPTIONAL: From the list of options, select options appropriate to your search
    EXAMPLE: Select Match Case
    example of Find and Replace dialog box: Advanced Text
  10. Click FIND NEXT
    The first occurrence of the information searched for is identified
  11. Click REPLACE or REPLACE ALL
    Use the Replace option to replace each occurrence of the information individually. Clicking FIND NEXT will advance to and review subsequent occurrences.
    WARNING: Use the Replace All option with caution! This option will replace your specified information throughout the entire document(s).
    EXAMPLE: Click
    REPLACE
  12. To close the Find and Replace dialog box, click CLOSE
    The old text is replaced with the new.

Using Find Next

Within a given document, Dreamweaver will remember your last search. So, if you close the Find and Replace dialog box to do additional editing, you can resume your search using Find Next. This does not invoke the Find and Replace dialog box, it simply locates the next occurrence of the information previously searched.

  1. From the Edit menu, select Find Next
    OR
    Press [F3]

Articles

Domain Name Registration - Free Web Hosting Email Tips and Tricks -  Home Based Web Business - Work at Home - Chat Rooms  - Voice Chat - Cell Phone - Phone Calls - Love Dating - Online Dating Services