Replace

You can search for and replace a text portion that occurs in the document content, in names of attributes, in values of attributes or in comments of the document.

  1. Call up the Find And Replace tab of the Find and Replace Dialog.
    To call up the Find And Replace tab of the Find and Replace Dialog, do one of the following:
    • Choose Edit > Find&Replace .

    • Press Ctrl-H.

    The Find And Replace tab will appear.

    Figure 1. Find And Replace tab.



    Note:

    The Find and Replace Dialog is a " liquid dialog": it can have a different, docked appearance. For more information about liquid dialogs, see "Liquid" Dialog Boxes and Dialog Docking.

  2. Specify what to find.

    In the Find field, enter the text to find.

  3. Specify what to replace with.

    In the Replace field, enter the replacement text.

    Figure 2. Find And Replace tab. Text to find and replacement text are entered.



  4. Specify the search type.

    From the Search drop-down list, select where to search for the text entered in the Find field:

    Figure 3. Find And Replace tab. Specify where to search for text.



    • Text

      The text will be searched for in the document content.

    • Attribute Values

      The text will be searched for in the values of attributes.

    • Attribute Names

      The text will be searched for in the names of attributes.

    • Comments

      The text will be searched for in comments.

  5. Specify case sensitivity.

    To do a case-sensitive search, check the Match Case checkbox.

  6. Specify the search direction.

    To start the search at the cursor's location and move backwards toward the beginning of the document, check the Search Backwards checkbox.

  7. Lauch the search&replace.

    You can do one of the following:

    1. Replace occurrences one by one.
      1. To find an occurence, click the Find Next button .

      2. To replace the found occurence and find the next one, click the Replace button.

    2. Replace all occurrences at a time.

      To replace all occurrences at a time, click the Replace All button.

      When replace finishes, the following message will appear telling you the number of replaced instances.

      Figure 4. Replace completed message.



Related concepts
Find&Replace with Docked Find and Replace Dialog
Related tasks
Find
Search by Using XSLT Match Patterns
Related information
Find&Replace Dialog