Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Controlling Chart Gridlines

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

Converting Word for DOS Documents

Two Keys with the Press of One

 

Matching At the Beginning or End of a Word

Summary: The pattern matching capabilities of Word's search engine are quite powerful. You can tailor your search pattern so that whatever you specify must occur at the beginning or end of a word. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

When you are pattern matching in Word you can specify that you only want to match at the beginning or end of a word by using the < and > signs. For instance, if you wanted to search for a word that began with two consonants or a punctuation mark and a consonant, you could search for <[!AEIOUaeiou0-9]{2}. This effectively states "start at the beginning of a word and match anything that is two characters which are not upper- or lowercase vowels or a digit."

Likewise, if you wanted to find any word that ended in "ing," you could search for ing>. (Without the period, of course, which is only used here to end the sentence in the paragraph.)

You can use both the < and > characters together in a single search specification, which allows you to search for entire words. If you wanted all the four-character words beginning with t and ending with d, you could search for <[Tt]??[Dd]>. If you wanted any dates between 1800 and 1999, you could use <1[89][0-9]{2}>.

If you actually want to search for < or > in your document, you should precede the character with the backslash. Thus, to search for < you would use \< in your search specification.

Remember that to take advantage of the pattern matching capabilities of Word, you just need to make sure the Use Wildcards check box is selected on either the Find or Replace tabs of the Find and Replace dialog box.

Tip #1662 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007

Document and Annotate! One of the easily overlooked tools provided by Word is the ability to add footnotes and endnotes to your documents. WordTips: Footnotes and Endnotes is the definitive resource guide to using these tools to enhance your documents.
 
Check out WordTips: Footnotes and Endnotes today!