Online Documentation for SQL Query for DB2
Replace Text dialog
The Replace Text dialog is provided for searching and replacing text within the SQL Editor working area.
Text to find
Enter a search string in this box. The Arrow-Down button which can be found next to the input box allows you to select any of the previously entered search strings.
Text to replace
This box allows you to enter a string to replace the search string. The Arrow-Down button which can be found next to the input box allows you to select any of the previously entered strings. To replace the search string with an empty string, leave this input box blank.
This option can be used to differentiate uppercase characters from lowercase ones during the search process.
Whole words only
Use this option to search for words only (with this option off, the search string might be found within longer words.)
Recognizes regular expressions in the search string.
Replace with template
This option requires the Regular expressions option selection.
Enable this option to use regular expressions in the Text to replace field. Expression used in this field will be applied to each string that matches the Text to find expression.
Note: The syntax of regular expressions that can be used in the Text to find and the Text to replace fields is similar to that used in Perl regular expressions. Comprehensive information about it can be found at http://perldoc.perl.org/perlre.html#Regular-Expressions.
Prompt on replace
Check this option if you wish to be prompted before replacing upon each occurrence of the search string. When this option is off, the search string is replaced automatically.
Searches and replaces from the current position to the end of the SQL Editor area.
Searches and replaces from the current position to the beginning of the SQL Editor area.
Searches and replaces within the entire SQL Editor working area, in the direction specified by the Direction setting.
Searches and replaces only within the currently selected text, in the direction specified by the Direction setting. You can use the mouse or block commands to select a block of text.
The search and replace process starts at the cursor's current position, and then proceeds either forward to the end of the scope, or backward to the beginning of the scope depending on the Direction setting.
The search and replace process covers either the entire block of selected text or the entire script (no matter where the cursor is in the Editor area) depending upon the Scope options.
Click the Replace All button to replace every occurrence of the search string. If you have checked the Prompt on replace option, the confirmation dialog box appears upon each occurrence of the search string.