Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Find & Replace Wildcard Expression for Ordinal Numbers
Fellow Forum Members,
I need to erase a lot of paragraph numbers (shown below) using a Find & Replace operation. The problem is that 9 has one digit and "10" has two digits and "120" has three digits. Using the FIND & REPLACE expression "^#.^#.^#.^#.^#" leaves behind "0" for "10" and "20" for "120". The flaw with this expression is that it's looking for CARDINAL numbers. Can anyone help me in developing a wild card expression that will find whatever ORDINAL number no matter how many digits an allow me to erase it in one single Find & Replace operation. Thanks in advance for any help. 3.2.1.3.9 Item 1 3.2.1.3.10 Item 2 3.2.1.3.11 Item 3 3.2.1.3.120 Item 3 |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Find & Replace Wildcard Expression for Ordinal Numbers
Look for
[0-9]{1,}.[0-9]{1,}.[0-9]{1,}.[0-9]{1,}.[0-9]{1,} or [0-9.]{9,} if there are no other large blocks of numbers See http://www.gmayor.com/replace_using_wildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org binar wrote: Fellow Forum Members, I need to erase a lot of paragraph numbers (shown below) using a Find & Replace operation. The problem is that 9 has one digit and "10" has two digits and "120" has three digits. Using the FIND & REPLACE expression "^#.^#.^#.^#.^#" leaves behind "0" for "10" and "20" for "120". The flaw with this expression is that it's looking for CARDINAL numbers. Can anyone help me in developing a wild card expression that will find whatever ORDINAL number no matter how many digits an allow me to erase it in one single Find & Replace operation. Thanks in advance for any help. 3.2.1.3.9 Item 1 3.2.1.3.10 Item 2 3.2.1.3.11 Item 3 3.2.1.3.120 Item 3 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
find and replace NUMBERS | Tables | |||
find and replace numbers using wildcards | Microsoft Word Help | |||
Wildcard expression? | Microsoft Word Help | |||
How do I replace a parenthetical expression? | Microsoft Word Help | |||
Default to No Superscript for ordinal numbers (e.g. 12th, 2nd, etc | Microsoft Word Help |