find and replace
Find and Replace start at the text cursor position and search the main text area for a character string that matches FindString.
If a match is found, Find puts the text cursor just before the first character of the match, while Replace replaces the matched string with ReplaceString and leaves the cursor after ReplaceString.
FindString and ReplaceString
You can specify any strings you want for FindString and ReplaceString, but tab, newline, and all other control characters must be entered in backslash format. For example, "Hello\tmister\nbill" is a valid FindString or ReplaceString with a tab character between "Hello" and "mister" , and a newline between "mister" and "bill".
find and replace options
You can control the way Find and Replace behave, including case-sensitivity and repetition-count.
To find matching strings, case-sensitive searches require identical strings, while case-insensitive searches consider upper and lower case versions of the same character as equivalent. A case-sensitive search for "Hello" will skip "hello" , "HELLO" , and "HellO" , while a case-insensitive search will find all three.
Searches are not case sensitive until you change the case sensitivity setting in the FindWindow, which appears when you select E dit F ind in the main menu, or enter .ef in the upper text area.
The repetition-count determines how many times to execute find and replace commands. When repetition-count is 1 , Find stops at the next occurrence of FindString, while Replace stops after it replaces the next occurrence of FindString with ReplaceString.
When repetition-count is greater than one, Find searches for FindString the specified number of times. This has the same effect as searching for the n th occurrence of FindString, where n= repetition count.
When the repetition-count is greater than one, Replace searches for FindString the specified number of times, each time replacing it with ReplaceString. All n occurrences of FindString are replaced by ReplaceString, not just the n th occurrence.