Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Drew
 
Posts: n/a
Default MS Word 2000 Find & Replace

I am trying to do a simple "Find & Replace" but don't have the expertise to
figure it out. How do I find: -000-000-0000- and replace it with
the following format: (000) 000-0000 --

I need to replace the first hyphen that is found with a [space], and enclose
the first 3 digits with parentheses; eliminate the second hyphen and replace
it with a [space] as well; and finally, replace the last 'found' hyphen with
2 [spaces] followed by 2 hyphens. The telephone numbers obviously vary, so I
need to retain the original numbers.

Also, do I need to have the 'Wildcard' option checked? I appreciate any
assistance you can provide. Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel
 
Posts: n/a
Default MS Word 2000 Find & Replace

Check 'Use wildcards'
Search for: -([0-9][0-9][0-9])-([0-9][0-9][0-9])-([0-9][0-9][0-9][0-9])-
Replace with: (\1) \2-\3 --



"Drew" wrote in message
...
I am trying to do a simple "Find & Replace" but don't have the expertise to
figure it out. How do I find: -000-000-0000- and replace it with
the following format: (000) 000-0000 --

I need to replace the first hyphen that is found with a [space], and
enclose
the first 3 digits with parentheses; eliminate the second hyphen and
replace
it with a [space] as well; and finally, replace the last 'found' hyphen
with
2 [spaces] followed by 2 hyphens. The telephone numbers obviously vary,
so I
need to retain the original numbers.

Also, do I need to have the 'Wildcard' option checked? I appreciate any
assistance you can provide. Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
Posts: n/a
Default MS Word 2000 Find & Replace

Use wildcards.

Look for
-([0-9]{3})-([0-9]{3})-([0-9]{4})-

Replace with
(\1) \2-\3

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor
 
Posts: n/a
Default MS Word 2000 Find & Replace

See also 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


Drew wrote:
I am trying to do a simple "Find & Replace" but don't have the
expertise to figure it out. How do I find: -000-000-0000-
and replace it with the following format: (000) 000-0000 --

I need to replace the first hyphen that is found with a [space], and
enclose the first 3 digits with parentheses; eliminate the second
hyphen and replace it with a [space] as well; and finally, replace
the last 'found' hyphen with 2 [spaces] followed by 2 hyphens. The
telephone numbers obviously vary, so I need to retain the original
numbers.

Also, do I need to have the 'Wildcard' option checked? I appreciate
any assistance you can provide. Thank you in advance.



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Drew
 
Posts: n/a
Default MS Word 2000 Find & Replace

Thank you so much for the reply. It worked, and gave me a better
understanding of how this function works. I was using the [0-9] three and
four times in succession, instead of using {3} or {4} to represent the amount
of numbers.

"Greg" wrote:

Use wildcards.

Look for
-([0-9]{3})-([0-9]{3})-([0-9]{4})-

Replace with
(\1) \2-\3




  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Drew
 
Posts: n/a
Default MS Word 2000 Find & Replace

Thanks for trying, but it didn't work -- " 'Find What' path was too
complicated" was the error message it gave me.

"Jezebel" wrote:

Check 'Use wildcards'
Search for: -([0-9][0-9][0-9])-([0-9][0-9][0-9])-([0-9][0-9][0-9][0-9])-
Replace with: (\1) \2-\3 --



"Drew" wrote in message
...
I am trying to do a simple "Find & Replace" but don't have the expertise to
figure it out. How do I find: -000-000-0000- and replace it with
the following format: (000) 000-0000 --

I need to replace the first hyphen that is found with a [space], and
enclose
the first 3 digits with parentheses; eliminate the second hyphen and
replace
it with a [space] as well; and finally, replace the last 'found' hyphen
with
2 [spaces] followed by 2 hyphens. The telephone numbers obviously vary,
so I
need to retain the original numbers.

Also, do I need to have the 'Wildcard' option checked? I appreciate any
assistance you can provide. Thank you in advance.




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Drew
 
Posts: n/a
Default MS Word 2000 Find & Replace

Thank you for the reply. The previous post answered my question, but I did
check out your website, which should be very helpful in the near future.

"Graham Mayor" wrote:

See also 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


Drew wrote:
I am trying to do a simple "Find & Replace" but don't have the
expertise to figure it out. How do I find: -000-000-0000-
and replace it with the following format: (000) 000-0000 --

I need to replace the first hyphen that is found with a [space], and
enclose the first 3 digits with parentheses; eliminate the second
hyphen and replace it with a [space] as well; and finally, replace
the last 'found' hyphen with 2 [spaces] followed by 2 hyphens. The
telephone numbers obviously vary, so I need to retain the original
numbers.

Also, do I need to have the 'Wildcard' option checked? I appreciate
any assistance you can provide. Thank you in advance.




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
I can't find a free, word 2002 download Gradius16493 New Users 16 November 12th 05 07:13 AM
How to use Find and Replace for Auto Correct entries & symbols Jeanette Microsoft Word Help 9 November 10th 05 10:14 AM
Envelope Address GR New Users 5 April 24th 05 09:48 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM
Wordperfect Office 2000 conversion to Word 2003 MikeE New Users 1 March 21st 05 12:04 AM


All times are GMT +1. The time now is 02:20 PM.

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"