How can I put one number 100 times in a document?

  • Thread starter Thread starter Wim Verschaeve
  • Start date Start date
W

Wim Verschaeve

I have a whole document with a lot of phone numbers (xx.xx.xx). But I want
to put before every phone number a zone number(056). So the result has to be
this: (056)xx.xx.xx. Can anyone help me with this?



Wim
 
From the Edit menu, select Replace and then click on the More button and
check the "Use wildcards" box. Then in the "Find what:" control, enter:

([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters using
wildcards" at:

http://www.word.mvps.org/FAQs/General/UsingWildcards.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
There's a typo in there Doug :) It should have read:
([0-9]{2}.[0-9]{2}.[0-9]{2})


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

From the Edit menu, select Replace and then click on the More button
and check the "Use wildcards" box. Then in the "Find what:" control,
enter:
([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters
using wildcards" at:

http://www.word.mvps.org/FAQs/General/UsingWildcards.htm


Doug Robbins - Word MVP
Wim Verschaeve said:
I have a whole document with a lot of phone numbers (xx.xx.xx). But
I want to put before every phone number a zone number(056). So the
result has to be this: (056)xx.xx.xx. Can anyone help me with this?



Wim
 
Which must not matter because the string that I posted was copied from the
Edit Replace dialog after using it to successfully add the required area
code.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
Graham Mayor said:
There's a typo in there Doug :) It should have read:
([0-9]{2}.[0-9]{2}.[0-9]{2})


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

From the Edit menu, select Replace and then click on the More button
and check the "Use wildcards" box. Then in the "Find what:" control,
enter:
([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters
using wildcards" at:

http://www.word.mvps.org/FAQs/General/UsingWildcards.htm


Doug Robbins - Word MVP
Wim Verschaeve said:
I have a whole document with a lot of phone numbers (xx.xx.xx). But
I want to put before every phone number a zone number(056). So the
result has to be this: (056)xx.xx.xx. Can anyone help me with this?



Wim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top