MS Word 2000 Find & Replace

G

Guest

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.
 
J

Jezebel

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 --
 
G

Guest

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.
 
G

Guest

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

Jezebel said:
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 said:
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.
 
G

Guest

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 said:
See also http://www.gmayor.com/replace_using_wildcards.htm

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
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.
 

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

Top