Scripts – Search and Replace Strings (Text)

Outlined here are the fields in the Search/Replace tab of the script editor. These are used to create one or more search (and replace) strings for a script. To quickly delete the existing script search/replace strings and insert those from the main dialog, press the CTRL key and click on the upper “Remove All” button.

Search String field: Enter the string to search for in this field. Selecting a line in the Search/Replace List will display the information for that line and allow you to edit it. When you are done with this field and with the settings for the Replace string, Case Sensitive, Regular Expression and Match Whole Word, click “Apply” to save the information to your script.

Search String Binary Mode button (Search & Replace b path4 Scripts   Search and Replace Strings (Text)): Click this to activate the Binary Mode dialog to create searches that span multiple lines or involve special characters for the Search field. When you are done creating the string, “Binary mode –>>”, is displayed in the search string area. If you want to double check your entry or make changes, click the button again.

Replace String field: Enter the replacement string in this field. Special Replacement Operators can also be used here. Selecting a line in the Search/Replace List will display the information for that line and allow you to edit it. When you are done with this field and with the settings for the Search string, Case Sensitive, Regular Expression and Match Whole Word, click “Apply” to save the information to your script.

Replace String Binary Mode button (Search & Replace b path4 Scripts   Search and Replace Strings (Text)): The operation here parallels the Search String binary mode editor. Click this to activate the Binary Mode dialog to a multiple line and/or special character Replace String. When you are done creating the string, “Binary mode –>>” is displayed. To view the string later, click the button again.

Case Sensitive field: Check this to make the search case sensitive. Uncheck it if you want to search regardless of case. To save the information for the current row when you are done, click “Apply” (in the same group).

Match Whole Word: Check this field to search for the exact word or phrase specified (enclosed by whitespace). For example, if this option is on and you look for “Window”, the program will find it in the phrase “…use the Window menu…” but not in the phrase “…Windows 95…”. If this option is not checked, both occurrences will be found. To save the information for the current row when you are done, click Apply (in the same group). Match Whole word is not available when Regular Expression is checked.

Regular Expression: Check this to use a regular expression. Case sensitive and binary mode can be used in conjunction with this type of search. See Regular Expressions for more information on the syntax supported. To save the information for the current row when you are done, click “Apply” (in the same group).

Ignore Whitespace: Check this to use Ignore Whitespace mode. To save the setting for the current line, click the Search/Replace “Apply” Button. Ignore Whitespace is not available when Regular Expression is checked.

HTML Mode: Check this to use HTML Mode. Click the “Apply” button to save the setting for the current line. HTM Mode is not available when Regular Expression is checked.

Search/Replace List: The search/replace items currently in the script are listed in the lower section of the dialog. The checkboxes – Search & Replace chkmark Scripts   Search and Replace Strings (Text) and Search & Replace chkopen Scripts   Search and Replace Strings (Text) – determine whether that s/r string pair will be used. The default is that all s/r pairs are used. To disable an item, click on the box and uncheck it. To edit a specific s/r pair, highlight it in this list. The Search String and Replace String for the line will then be exposed and you can then modify or delete it as you wish.

Apply button for Search/Replace List: Click this button to save the information for the currently selected line.

Insert button for Search/Replace List: Click this button to insert a new Search/Replace line above the currently selected line. To quickly insert the current search/replace entries from the main dialog without deleting the other entries, hold CTRL and click on “Insert”.

Remove button for Search/Replace List: Click this button to delete the information for the currently selected line.

Remove All button for Search/Replace List: Click this button to remove all the Search/Replace lines (to start a new script for example). To quickly delete the existing script search/replace strings and insert those from the main dialog, press the CTRL key as you click on this button.

Move Up button for Search/Replace List: Click this button to move the information for the currently selected line up by one line.

Move Down button for Search/Replace List: Click this button to move the information for the currently selected line down by one line.

Scripts – Search and Replace Strings (Text)