Quick Replace

When all search options are defined, choose to find the next instance of the required string or expression within the specified scope, then replace individual or all instances of searched items.
Replace option
Description
Procedure
Find what
String or expression to find within the open document.
Type the required string or expression in the field, select one of the last twenty searches from the
Find what
drop-down combo box, and use regular expressions in searches.
Replace with
String or expression that will replace each match found.
Type the required string or expression in the field provided, or select one of the last twenty items entered using the drop-down combo box. Delete matches found by leaving the
Replace with
field empty. Use regular expressions in the
Replace with
field.
Look in
Scope for the search.
Select the required scope from the
Look in
drop-down combo box.
Find options
Options to refine the search.
Search for case sensitive matches using
Match Case
. Disregard partial word matches by selecting
Match whole word
. Include regular expressions by selecting
Use Regular Expressions
. Also define the file types to search in the
Look at these file types
text box.
Result options
Options for search results.
Choose to display the results in the
Find results 1 window
or
Find results 2 window
. Choose to display only file names in the search results by selecting
Display file names only
.
Task
Procedure
Replace a string or expression in a file
Perform replacements for a selected program organization unit (POU) body.
  1. From the
    Edit
    menu, click
    Find
    and
    Replace
    , and then click
    Quick
    Replace
    (or press
    Ctrl+F
    ).
  2. In the
    Replace
    in
    Files
    dialog box, enter the required information:
    1. In the
      Find
      what
      field, type the string or expression to search for.
    2. In the
      Replace
      with
      field, type the replacement string or expression.
    3. In the
      Look
      in
      field, select
      Current
      Document
      .
  3. Click
    Find
    Next
    ,
    Replace
    , or
    Replace
    All
    .
Use regular expressions when replacing strings or expressions
  1. From the
    Replace
    in
    Files
    dialog box, expand
    Find
    options
    , then select
    Use
    Regular
    Expressions
    .
  2. In the
    Find
    what
    or
    Replace
    with
    fields, type the required regular expression.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal