EVE$HELP.HLB  —  GLOBAL_REPLACE
  GLOBAL REPLACE

  Searches for the "old string" you specify and replaces all occurrences of
  it with the "new string" you specify. Similar to using the REPLACE command
  and replying with ALL to the prompt.

  Steps:

     1.  Use the GLOBAL REPLACE command.

     2.  Type the old string---the text you want to find.

     3.  Type the new string---the text you want to use instead, if any.

     +----------------------------  NOTE  -------------------------------+
     | GLOBAL REPLACE replaces all occurrences of the old string in the  |
     | current buffer without prompting you for confirmation. Therefore, |
     | use this command only if you are sure you want to replace all the |
     | occurrences.                                                      |
     +-------------------------------------------------------------------+

  Example:

     The following command replaces all occurrences of the old string
     ("butter") with the new string ("margarine"):

        Command: GLOBAL REPLACE butter margarine

  Usage notes:

  o  The search begins in the current direction. If the old string is not
     found in that direction, EVE automatically searches in the opposite
     direction. If the old string is found in the opposite direction, EVE
     asks if you want to change direction and go there---press RETURN for
     Yes, or type No and press RETURN. The cursor is left at the first
     occurrence of the old string that was replaced, if any.

  o  If the search covers the buffer more than once, EVE asks if you want to
     continue, so you can avoid replacing a string again when the old and
     new strings are similar. When the operation finishes, EVE tells you how
     many replacements were made. If the old string is not found, EVE tells
     you it replaced 0 occurrences.

  o  For help on how the case of the old string and new string affect
     replacements, see help on REPLACE.

  o  To replace phrases (several words), let EVE prompt you for the strings
     or put them in quotes, as follows (unless you are typing the strings in
     a DECwindows dialog box):

        Command: GLOBAL REPLACE "Samuel L. Clemens" "Mark Twain"

  o  After GLOBAL REPLACE, the old string becomes the search string for the
     next FIND. Thus, using FIND NEXT or pressing the FIND key twice
     searches for the old string.

  o  If your old string begins with REPL, REPLACE, or a similar string, be
     sure to differentiate the command and the old string---put the old
     string in quotes, or let EVE prompt you for the strings, or use an
     unambiguous abbreviation (such as GLOB REP instead of just GLOB).

  Related topics:

     FIND    FIND NEXT    REPLACE    SET FIND CASE EXACT    WILDCARD FIND
Close Help