Microsoft Word/Find and replace with wildcards
I have to find the following pieces of text (for example) in documents and make them bold.
It will take this form:
The part that has to be bold is the digit, the hyphen and the following digit (if there is one).
I do not want any other digits that could be in the document to be in bold. I only want the figures that come after the full stop and two spaces. I've tried to solve this but I'm not very good with wild cards. Can you help please?
The way I understand your query is that you have text in your document which looks somewhat like this
<period><2spaces><numbers><hyphen><numbers><space> (e.g, ". 21-21 ")
You want to make the numbers,hyphen & numbers as bold.
Open Find&Replace dialog box.
Turn the wildcards ON
Put these characters in the find box without the double quotes ". ?*\-* "
This is <period><2 spaces><question mark><asterix><back slash><hyphen><asterix><space>
Put these characters in the replace box without quotes "^&" mark formatting as bold (press Ctrl+B)
You will get the desired results. However, you will also get the <period><2spaces> at the beginning and <space> at the end as bold. You can unbold them by finding for bold period 2 spaces and replacing all such instances as unbold.
Hope the above is clear. Let me know if you need more detailed information.
About Microsoft Word
This topic answers questions related to Microsoft Word stand-alone or Microsoft Office Word including Word 2003, Word 2007, Office 2000, and Office XP. You can get Word help on formatting text, tables, tabs, fonts, styles, general Word layouts, bullets, headings, and outlines, using templates, toolbar modifications, and using Track Changes. You may also find tips on linking Word and Excel embedded objects including charts. This site does not provide a general Word tutorial nor the basics of using a word processor. It provides specific answers to using Microsoft Word only. If you do not see your Word question answered in this area then please ask a Word question here