Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
find numbers?
I need to replace all numbers in a document with "xx". The numbers can be in
the format 7, 0.07, 77, 700.07, 7,000. I can find some but not all. Any suggestions |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
find numbers?
"Bruce in California" wrote:
I need to replace all numbers in a document with "xx". The numbers can be in the format 7, 0.07, 77, 700.07, 7,000. I can find some but not all. Any suggestions Hi Bruce, That's a job for wildcards. But Word's wildcard matching (Edit Find, check "Match wildcards") does not allow optional groups (which you would need for the optional dots and commas inside numbers). So the best I can think of would be two searches, one for Find what: [0-9][0-9,.]@[0-9] and, since this misses single and double digit numbers, a second search for: Find what: [0-9]{1,2} Or if you do the search with a macro, match [0-9.,]{1;} and then exclude trailing (and maybe leading) dots and commas from the selection with ..MoveEndWhile. Regards, Klaus |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find and Replace problems | Microsoft Word Help | |||
Incorrect Page Numbers in a Table of Contents | Microsoft Word Help | |||
Computer can't find Winword.exe. Need to re-install. Where find? | Microsoft Word Help | |||
Find and Replace GREEK symbols in XP, 2K & 97 | Microsoft Word Help | |||
Problem with Page Numbers in Index using Word 2002 | Microsoft Word Help |