Replace Text
Return to Introduction  Previous page  Next page


Text Hawk Text Editor also gives you the ability to search and replace text within the active document. Type a search term into the "Find" box and click Find Next to determine if it exists in the active document. If the search term exists, Text Hawk will highlight it for you. You may then continue to click the Find Next button to cycle through all occurrences of this search term. You may also choose to click Replace to replace the currently selected occurrence of the search term with the text in the "Replace with" box. Clicking on the Replace All button will replace all instances of the "Find" text with the "Replace with" text.

The following options are available:

1.Match whole word only - If this option is selected, Text Hawk Text Editor only finds whole word search terms that match the text as used in the "Find" box.  
2.Match case - If this option is selected, Text Hawk searches for search terms with the same case as used in the "Find" box.  
3.Regular expression - If this option is selected, the search term will be treated as a standard Gnu regular expression. Following is brief introduction to these rules:  

Wildcards:
1.? - Matches any single character. ( Example: ?at matches whole words bat and cat but does not match slat )  
2.+ - Matches one or more of anything.  
3.* - Matches zero or more of anything.  
Sets:
1.Search sets must be enclosed in square brackets.  
2.Character ranges must be specified with a dash. ( Example: b[a-i][a-i] matches big and bad but does not match bug )  
Other:
1.Escape characters. ( Example: \t will match true tab characters )  
2.Expressions can be nested into sub-expressions with parentheses.  
3.Sub-expressions may be logically ORed together with the vertical bar: |  

4. Preserve case - This option preserves the case used in the "Find" box when replacing text with the contents of the "Replace with" box. ( Example: Find - ABCDabcd, Replace with - wxyzwxyz. This will cause all ABCDabcd to be replaced with WXYZwxyz even though
Replace with has wxyzwxyz.

5. Replace in:
1.Selection: - This option is only enabled when there is a section of text highlighted before invoking the Find and Replace dialog. With this option selected, text will only be replaced within that selection of text.  
2.Entire buffer: - With this option selected, text will be replaced throughout the entire contents of the active document.  



Visit the Text Hawk Forum!

Get this guide in PDF format:

Wingenuity, Inc.
http://www.wingenuity.com/

Text Hawk Text Editor and all accompanying files, unless noted otherwise are
Copyright © 1999-2006 Wingenuity, Inc. All Rights Reserved.