Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Search and replace in MS Word.
I got a document in MS word with a lot of phone numbers in it. The notation
of the numbers is like this: xx.xx.xx . But in Belgium, we have to put an area number in front of it. The number I have to put in front of it is (056) brackets included. How can we fix this with the search and replace function in MS Word? Because I don't want to put (056) in front of every number one by one. Thanks in advance! |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Search and replace in MS Word.
Hello Jen
Jen Chiers wrote: I got a document in MS word with a lot of phone numbers in it. The notation of the numbers is like this: xx.xx.xx . But in Belgium, we have to put an area number in front of it. The number I have to put in front of it is (056) brackets included. How can we fix this with the search and replace function in MS Word? Because I don't want to put (056) in front of every number one by one. Edit | Replace is your friend. Activate "Use wildcards" in the search options. Find what: ([0-9][0-9].[0-9][0-9].[0-9][0-9]) Replace with: (056) \1 I'm sure somebody more fluent with Word's RegEx could simplify the search term a bit (I'm not good with repetitions :-)), but this shoudl do it. HTH Robert -- /"\ ASCII Ribbon Campaign | MS \ / | MVP X Against HTML | for / \ in e-mail & news | Word |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Search and replace in MS Word.
Even simpler, search for
([0-9.]{8}) but whichever you use, watch out for dates in the format 06.09.07 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 Robert M. Franz (RMF) wrote: Hello Jen Jen Chiers wrote: I got a document in MS word with a lot of phone numbers in it. The notation of the numbers is like this: xx.xx.xx . But in Belgium, we have to put an area number in front of it. The number I have to put in front of it is (056) brackets included. How can we fix this with the search and replace function in MS Word? Because I don't want to put (056) in front of every number one by one. Edit | Replace is your friend. Activate "Use wildcards" in the search options. Find what: ([0-9][0-9].[0-9][0-9].[0-9][0-9]) Replace with: (056) \1 I'm sure somebody more fluent with Word's RegEx could simplify the search term a bit (I'm not good with repetitions :-)), but this shoudl do it. HTH Robert |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Search and replace in MS Word.
Thank you very much! Your explanation was very useful.
"Jen Chiers" schreef in bericht ... I got a document in MS word with a lot of phone numbers in it. The notation of the numbers is like this: xx.xx.xx . But in Belgium, we have to put an area number in front of it. The number I have to put in front of it is (056) brackets included. How can we fix this with the search and replace function in MS Word? Because I don't want to put (056) in front of every number one by one. Thanks in advance! |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Search and replace in MS Word.
Thank you everybody. You've been a great help for me.
"Jen Chiers" schreef in bericht ... I got a document in MS word with a lot of phone numbers in it. The notation of the numbers is like this: xx.xx.xx . But in Belgium, we have to put an area number in front of it. The number I have to put in front of it is (056) brackets included. How can we fix this with the search and replace function in MS Word? Because I don't want to put (056) in front of every number one by one. Thanks in advance! |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word Search and Replace | Microsoft Word Help | |||
how do i search and replace in multiple word documents | Microsoft Word Help | |||
Search & Replace--Word 2002-2003 | Microsoft Word Help | |||
how do I search and replace hyperlinks in a word document. | Microsoft Word Help | |||
Word 2007 search and replace freezes | Microsoft Word Help |