Reputation: 634
I have a document with hundreds or thousands of numbers. These are page references. The page references have now shifted, so I need to modify every reference.
Using regex in word advanced find and replace, I have tried:
[0-9]{1,}
While this does return each number, it will also then return the next 2 digits of a 3 digit number, which I want to avoid.
The numbers each have 2 or 3 digits and need to subtract 14 from each.
Example:
George V, 116
George Washington Memorial Parkway, 223
Georgian designs, 91, 196, 202; as unique 215
This should become:
George V, 102
George Washington Memorial Parkway, 209
Georgian designs, 77, 182, 188; as unique 203
Upvotes: 0
Views: 318
Reputation: 1014
The following should find all numbers in Word:
<[0-9]{1,}>
<
and >
represent the start and end of words.
Upvotes: 1