finding a ' followed by a space followed by a capital?

A

and

Hi, Does anyone know how one finds this sequence: "' " followed by a
capital in Word?

I want to replace it by the same sequence, but the space will be changed
for a placeholder (like ÿ).

So "' B" becomes "'ÿB".

Any ideas?

Best,
ANDy
 
G

Greg

John,

ANDy wanted to replace any instance of
apostrophe-space-CAP letter with
apostrophe-ÿ-CAP letter. Why I don't know.

Using Edit>Find and Replace>More>Use Wildcards.

( ) are the wildcard grouping symbols. [ ] are the wildcard range
symbols. In the find what field:
(') [A-Z]
means find any sequence containing a group of 1 ' and a single space
and a group of 1 capital letter that is in the range A-Z.

The replace with field:
\1ÿ\2
means replace with the content of group 1 the ÿ and the content of
group 2.

HTH
 
J

John Doue

Greg said:
John,

ANDy wanted to replace any instance of
apostrophe-space-CAP letter with
apostrophe-ÿ-CAP letter. Why I don't know.

Using Edit>Find and Replace>More>Use Wildcards.

( ) are the wildcard grouping symbols. [ ] are the wildcard range
symbols. In the find what field:
(') [A-Z]
means find any sequence containing a group of 1 ' and a single space
and a group of 1 capital letter that is in the range A-Z.

The replace with field:
\1ÿ\2
means replace with the content of group 1 the ÿ and the content of
group 2.

HTH
Greg, I am very thankful for your detailed explanations.

Thanks a million
 

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