View Single Post
  #9   Report Post  
Posted to microsoft.public.word.newusers
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Using Find replace to reverse words: Cottage Mimosa Mimosa Cottage,etc

Assuming that I understood it correctly, this search finds A (the word
"Cottage"), a space, and B (a word with at least two characters, which
can be uppercase or lowercase letters) and replaces it with B, a
space, and A.

I'm not sure what the restriction on B is for?

--
Stefan Blom
Microsoft Word MVP


"Graham Mayor" wrote in message
...
Replace (wildcards)
(Cottage) ([a-zA-Z]{2,})
with
\2 \1

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Stefan Blom wrote:
Note that if your document contains more than a list of names, it
isn't a good idea to use the suggested search. :-(

Hopefully, someone can come up with a better idea.


"Stefan Blom" wrote in message
...
The following seems to work:

1. Choose Edit | Replace.

2. Click the More button, if necessary.

3. Check the "Use wildcards" option.

4. "Find what": (*)( )(*)

5. "Replace with": \3\2\1

6. Click Replace All.

--
Stefan Blom
Microsoft Word MVP


"Rob" wrote in message
...
I have a text with names of cottages in French word order:

Cottage
Mimosa, Cottage Alohi, etc.

How can I use Find/Replace to change them all to Mimosa Cottage,
Alohi Cottage, etc.?



TIA

Robin