Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Gilles Vanneste Gilles Vanneste is offline
external usenet poster
 
Posts: 2
Default Question about search and replace

I have a document that is utterly filled with data from person addresses to
phone numbers. Now all the phone numbers are formed like this : xx.xx.xx,
and I forgot to add the first three digits of those numbers. I don't want to
have to manually place them one by one, so I looked a bit at the different
functions I can use. My question is, I noticed the search function has an
option to search and replace words. I want to replace all the phone numbers
of the form xx.xx.xx with the same three digits for every phone number in
front of it (xxx), so the end result is that all the phone numbers in my
document are like this (056)xx.xx.xx . How do I do I use the search and
replace function to accomplish this? I can't seem to find the right way to
do it.

  #2   Report Post  
Posted to microsoft.public.word.newusers
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Question about search and replace

Gilles Vanneste wrote:
I have a document that is utterly filled with data from person
addresses to phone numbers. Now all the phone numbers are formed like
this : xx.xx.xx, and I forgot to add the first three digits of those
numbers. I don't want to have to manually place them one by one, so I
looked a bit at the different functions I can use. My question is, I
noticed the search function has an option to search and replace
words. I want to replace all the phone numbers of the form xx.xx.xx
with the same three digits for every phone number in front of it
(xxx), so the end result is that all the phone numbers in my document
are like this (056)xx.xx.xx . How do I do I use the search and
replace function to accomplish this? I can't seem to find the right
way to do it.


Enter this expression in the Find What box (the code ^# finds any single
digit):

^#^#.^#^#.^#^#

and enter this expression in the Replace With box (the code ^& means "the
text that was found"):

(506)^&

Then click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #3   Report Post  
Posted to microsoft.public.word.newusers
Gilles Vanneste Gilles Vanneste is offline
external usenet poster
 
Posts: 2
Default Question about search and replace

Thanks for the help, it worked!


"Jay Freedman" schreef in bericht
...
Gilles Vanneste wrote:
I have a document that is utterly filled with data from person
addresses to phone numbers. Now all the phone numbers are formed like
this : xx.xx.xx, and I forgot to add the first three digits of those
numbers. I don't want to have to manually place them one by one, so I
looked a bit at the different functions I can use. My question is, I
noticed the search function has an option to search and replace
words. I want to replace all the phone numbers of the form xx.xx.xx
with the same three digits for every phone number in front of it
(xxx), so the end result is that all the phone numbers in my document
are like this (056)xx.xx.xx . How do I do I use the search and
replace function to accomplish this? I can't seem to find the right
way to do it.


Enter this expression in the Find What box (the code ^# finds any single
digit):

^#^#.^#^#.^#^#

and enter this expression in the Replace With box (the code ^& means "the
text that was found"):

(506)^&

Then click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and replace - how to Benjamin Barrett Microsoft Word Help 6 December 30th 07 01:05 AM
Need some Search & Replace help scotteh New Users 17 January 24th 07 03:05 PM
Search and replace question Ben K. Bullock New Users 5 March 17th 06 04:14 AM
Search and replace Dr. Indera New Users 1 November 8th 05 02:05 PM
A search and replace question [email protected] Page Layout 1 March 7th 05 03:32 PM


All times are GMT +1. The time now is 11:44 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"