Search and replace
Solved
olivier
-
Raymond PENTIER Posted messages 58209 Registration date Status Contributor Last intervention -
Raymond PENTIER Posted messages 58209 Registration date Status Contributor Last intervention -
Hello everyone, and before we start, my best wishes for 2018!
Can you tell me how to search for a word in parentheses and change it by removing the parentheses and italicizing the word?
For example: (Hello) - Hello
Thank you for your help, this is for my son who has a "Word" exam next week.
Can you tell me how to search for a word in parentheses and change it by removing the parentheses and italicizing the word?
For example: (Hello) - Hello
Thank you for your help, this is for my son who has a "Word" exam next week.
4 answers
Hello,
It's indeed a bit complicated.
In the Find and Replace dialog box, you first need to check "Wildcard characters". Then you fill it in like this:
Find: (\(*)(*)(\))
Replace: \2
and you add the Italic format (Format button => Font).
m@rina
--
Please do not ask me your questions in private. I do not respond to them.
It's indeed a bit complicated.
In the Find and Replace dialog box, you first need to check "Wildcard characters". Then you fill it in like this:
Find: (\(*)(*)(\))
Replace: \2
and you add the Italic format (Format button => Font).
m@rina
--
Please do not ask me your questions in private. I do not respond to them.
Check out m@rina's blog https://faqword.com/
--
Retirement is great! Especially in the Caribbean... :-)
Raymond (INSA, AFPA, CF/R)
--
Retirement is great! Especially in the Caribbean... :-)
Raymond (INSA, AFPA, CF/R)
Hi Olivier.
To find out (a little bit) about m@rina, click on her username (at the very beginning of the message) and you'll reach her profile.
And when you browse her blog https://www.faqword.com/, you can see what her skills are.
To get an idea, here's a link presenting her 21 books https://www.decitre.fr/auteur/395918/Marina+Mathias
--
Retirement is great! Especially in the Caribbean... :-)
Raymond (INSA, AFPA, CF/R)
To find out (a little bit) about m@rina, click on her username (at the very beginning of the message) and you'll reach her profile.
And when you browse her blog https://www.faqword.com/, you can see what her skills are.
To get an idea, here's a link presenting her 21 books https://www.decitre.fr/auteur/395918/Marina+Mathias
--
Retirement is great! Especially in the Caribbean... :-)
Raymond (INSA, AFPA, CF/R)
And despite the online help from Word, which is very well done, I haven't fully understood the syntax!
On the other hand, it works perfectly (but I wasn't doubting that)!
Happy New Year, and above all keep assisting us!
Kiss.
Thank you for your valuable help. It does indeed give the desired result.
Is it possible to do the same exercise with other signs
for example: "Marina and Raymond"
result without quotation marks and in italics: Marina and Raymond
Thank you again, and Marina your site is already in my favorites.
The parentheses are used to search for any occurrence. Thus, in the Replace field, putting \2, for example, allows you to retrieve the 2nd occurrence from the Find field.
And since a parenthesis is a wildcard character, you need to be clever to search for a (regular) parenthesis. So, you precede the parenthesis with a \.
In the second example, if it involves typing quotes without non-breaking spaces, it's simpler, as the quote is not a non-breaking character:
Find: (")(*)(")
Replace with: \2 (in italic format)
Explanations here:
https://faqword.com/index.php/word/environnement/88-la-face-obscure-du-rr
m@rina
ps: And happy new year! ;)
I tried, but Word can't find the words I'm searching for.
I put a piece of text as an example.
Normally, if I carry out the desired action, I should be able to remove the "quotes" while making the word bold.
Sorry to bother you again.
Thanks in advance!
Example:
The "Romans" were the first to unify the administration of Gaul in "Latin language" which became that of the Church.
Result:
The Romans were the first to unify the administration of Gaul in Latin language which became that of the Church.
I apologize, but your last message contained the correct answer.
I simply forgot to reactivate the search for wildcard characters.
This means my problem is resolved.
I don't know who you are, Marina, but I know that you are amazing for your knowledge and your generosity in sharing it with other strangers.
Best of luck with your website.
Olivier.