
September 18th, 2011, 06:16 AM
|
|
Registered User
|
|
Join Date: Sep 2011
Posts: 3
Time spent in forums: 5 m 14 sec
Reputation Power: 0
|
|
|
Regex - Partial Mask
I am trying to do a find and replace in msword
problem:
I need to search for the following format
REF NO: 84542654
REF NO: 21364589
i need to replace the first 4 digits in the number with * so the iuput should be
REF NO: ****2654
REF NO: ****4589
I cannot seem to get this working
I have tried the following
Find - REF NO: \[0-9]
Replace - ****
I cannot figure out how to specify to only replace the first 4 digits.
I am happy to use VBA code via a module as an option
|