Find Replace

D

DK

Is there any fast way to do find replace with any
captilized letter between A-Z that has 3 spaces shall be
replaced with a comma and the A-Z letter etc or recording
as macro etc
 
D

Doug Robbins - Word MVP

Hi DK,

See the article "Finding and replacing characters using wildcards" at:

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

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
D

DK

but when we put [A-Z] command and replace will also have
[A-Z] it will replace all A-Z with these brackets and
miss out these chrachters example replcing "space" John
with ", [A-Z] " will make it ", ohn"
 
D

Doug Robbins - Word MVP

You obviously have not read or understood the article to which I referred
you. Look at the section dealing with the use of () in a wildcard search
string and the use of \# in the replace string.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
DK said:
but when we put [A-Z] command and replace will also have
[A-Z] it will replace all A-Z with these brackets and
miss out these chrachters example replcing "space" John
with ", [A-Z] " will make it ", ohn"
-----Original Message-----
Hi DK,

See the article "Finding and replacing characters using wildcards" at:

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

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP



.
 
G

Graham Mayor

You are half way there!

Lets say you have Dear[two spaces]John
or Dear[two spaces]Fred
and you want to change this to Dear,[one space]John
or Dear,[one space]Fred

Then you need a wildcard search for
[ ]{2,}([A-Z])
replace with
, \1

Broken down that is [ ] a space {2,} make that at least 2 spaces ( ) save
the bit between the brackets with was [A-Z] any upper case letter.
replace with
, comma space \1 replace the bit from between the first set of brackets -
here only one bracketed group.
Change this to reflect your requirements.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>



We really don't understand we know how to put the find "
([A-Z]) " but we can't figure out about the replace we
don't have the clue when we are not changing around words
just replacing spaces for commas before [A-Z] words please
give us the replacce command
-----Original Message-----
You obviously have not read or understood the article to which I
referred you. Look at the section dealing with the use of () in a
wildcard search string and the use of \# in the replace string.

Please post any further questions or followup to the newsgroups for
the benefit of others who may be interested. Unsolicited questions
forwarded directly to me will only be answered on a paid consulting
basis.

Hope this helps
Doug Robbins - Word MVP
DK said:
but when we put [A-Z] command and replace will also have
[A-Z] it will replace all A-Z with these brackets and
miss out these chrachters example replcing "space" John
with ", [A-Z] " will make it ", ohn"
-----Original Message-----
Hi DK,

See the article "Finding and replacing characters using wildcards"
at:

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

Please post any further questions or followup to the newsgroups
for the benefit of others who may be interested. Unsolicited
questions forwarded directly to me will only be answered on a paid
consulting basis.

Hope this helps
Doug Robbins - Word MVP
Is there any fast way to do find replace with any
captilized letter between A-Z that has 3 spaces shall be
replaced with a comma and the A-Z letter etc or recording
as macro etc


.


.
 

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