Limiting A Search To A Certain Number Of Occurrences

DocumentID: 10431
Revision Date: 07-Mar-97 11:03:02 AM

The information in this document applies to:
WordPerfect® 6.0 for DOS

Problem

You can limit a search and replace to a certain number of matches, no matter how many occurrences of the search string are in your document. Concept Using WordPerfect 6.0 for DOS, you can limit the Search and Replace feature to a specified number of occurrences of your search string or the end of the file, whichever comes first. For example, if you wish to search for and replace the first 12 occurrences of a string of text or codes, any other matches beyond the number you specify will be ignored. However, if there are only 10 matches in the entire document, all 10 will be replaced. How Do I Use It? 1 Choose Replace from the Edit menu, or press Replace (Alt+F2). 2 Type the string you want to search for, then press Enter. 3 Type the string you want to replace it with, then press Enter. 4 Choose Limit Number of Matches (8). 5 Type the number of matches you want to replace, then press Enter. 6 Press Replace (F2). When the search is complete, WordPerfect will display the number of matches it found and replaced. 7 Choose OK to return to your document. See Also Search and Replace in the WordPerfect 6.0 for DOS reference manual

Answer:

Details:

Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.