Finding and replacing text in individual scripts

You can search for and replace text in a script. For example, if you change a variable name, you can find and replace references to the variable in the script.

Note: You can also search for text in multiple scripts. See Finding and replacing text in scripts.

1. Open the script to search.

2. To search the entire script, choose Edit > Find or Edit > Replace.

To only search in a specific section, select the script steps and choose Edit > Find or Edit > Replace.

The Find and Replace dialog box opens. The selected tab depends on if you chose to find or replace text.

3. Enter the text to search for in the Find what field. You can enter a text string or use a regular expression for a more flexible search.

4. Enter the text to replace the returned text with in the Replace with field.

Note: You can use a regular expression in the Find what or Replace with fields. Expand the Find Options and select Use regular expressions. Click the Select Regular Expression button next to text fields to view regular expression characters.

5. Select an option from the Look in list to indicate where to search in the script.

6. Select any Find Options.

7. Click Find Next to search for more occurrences of the text.

8. Click Replace to replace the selected text.

9. Click Replace All to replace all occurrences of the text.