J
Jackie
Does anyone know if I can use search and replace to find text which is
shown in quotation marks, then make it bold?
shown in quotation marks, then make it bold?
Jackie said:Does anyone know if I can use search and replace to find text which is
shown in quotation marks, then make it bold?
Jay Freedman said:Jackie said:Does anyone know if I can use search and replace to find text which is
shown in quotation marks, then make it bold?
Yes, someone knows. (Sorry, couldn't help it! <g>)
Use a wildcard search, explained at
http://www.gmayor.com/replace_using_wildcards.htm. That is, click the More
button in the Replace dialog and check the "Use wildcards" box.
If your document uses only straight quotation marks, then the Find
expression is simply
("*")
and the Replace expression is
\1
and press Ctrl+B in the Replace box so the label under it says "Font: Bold".
Then click the Replace All button.
If the document uses curly quotes -- what Word calls "smart quotes" although
they sometimes aren't so smart -- you can use those characters in the Find
expression either by copy/paste from the document or by typing in the ASCII
codes: hold the Alt key while typing on the number pad 0147 for an opening
quote and 0148 for a closing quote. That will give you the Find expression
("*")
Finally, if the document has a mixture of straight and curly quotes, you can
try changing them all in one go with the Find expression
([""]*[""])
If there are any unmatched pairs of quotes in the document, though, you
could wind up with a very large chunk of non-quotation text in bold. Just
remember that Undo will bring you back to the original state so you can fix
the incorrect quotation mark and try again.
Generally speaking, " in the Find dialog will find either straight or
curly quotes.
Jay Freedman said:Jackie said:Does anyone know if I can use search and replace to find text which
is shown in quotation marks, then make it bold?
Yes, someone knows. (Sorry, couldn't help it! <g>)
Use a wildcard search, explained at
http://www.gmayor.com/replace_using_wildcards.htm. That is, click
the More button in the Replace dialog and check the "Use wildcards"
box.
If your document uses only straight quotation marks, then the Find
expression is simply
("*")
and the Replace expression is
\1
and press Ctrl+B in the Replace box so the label under it says
"Font: Bold". Then click the Replace All button.
If the document uses curly quotes -- what Word calls "smart quotes"
although they sometimes aren't so smart -- you can use those
characters in the Find expression either by copy/paste from the
document or by typing in the ASCII codes: hold the Alt key while
typing on the number pad 0147 for an opening quote and 0148 for a
closing quote. That will give you the Find expression
("*")
Finally, if the document has a mixture of straight and curly quotes,
you can try changing them all in one go with the Find expression
([""]*[""])
If there are any unmatched pairs of quotes in the document, though,
you could wind up with a very large chunk of non-quotation text in
bold. Just remember that Undo will bring you back to the original
state so you can fix the incorrect quotation mark and try again.
Jackie said:Thanks for this. I don't know if I'm missing something but it doesn't
work. I get a message saying "The replace with text contains a group
number which is out of range". My doc is all straight quotes.
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.