Search & Replace Pattern Matching

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I would like to search and replace a single quote (') that
occurs on every line of my document. How do I pattern
match that? I tried "^'" (without the double quotes) in
the Search field...but, it finds nothing!?!?! Thanks in
advance!!!
 
Jason said:
I would like to search and replace a single quote (') that
occurs on every line of my document. How do I pattern
match that? I tried "^'" (without the double quotes) in
the Search field...but, it finds nothing!?!?! Thanks in
advance!!!

Hello. Try the find box and right your "'" and in the replace box, right
nothing. Good luck and happy holidays.
 
See http://www.mvps.org/word/FAQs/General/UsingWildcards.htm
Note that it will be all too simple to remove wanted single quotes as well
as the unwanted ones, if you are not clear with your search pattern. I
would need more information about this single quote and where it occurs to
give you a more definite answer.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
I'm sorry, I wrote this when it was late at night and I
didn't specify this too clear. I want to replace a single
quote that occurs at the BEGINNING of every line. I
tried "^'", but I couldn't get it to work. Thanks
again...sorry for the confusion.
 
Highlight the desired character; copy it; open your Find/Replace Window --
use the CONTROL + V option to paste the character to the Find location.
Enter what you wish to replace it with (or leave bland for nothing) in the
Replace location....

That should do the trick!

Kate in MN
 
Try searching for:

^p'

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
See Suzanne's reply which will find all but the one on the first line - and
note this is not a wildcard search.

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

Maybe you are looking at this the wrong way. Did you know that if you hold
down the ALT key, you can make in vertical selection of a document?

For your example, place the cursor at the top most point in the margin where
the first ' mark occurs. Hold down the ALT key and drag the cursor across
one ' and then down to the final '. You should no have a vertical selection
of all the ' characters, so now press delete.

--
Terry Farrell - Word MVP
http://www.mvps.org/word/

I'm sorry, I wrote this when it was late at night and I
didn't specify this too clear. I want to replace a single
quote that occurs at the BEGINNING of every line. I
tried "^'", but I couldn't get it to work. Thanks
again...sorry for the confusion.
 
I actually want to replace all the ' with some other text.
I tried using Suzanne's suggestion, but it removes all the
paragraphs as well. Is there a way to use her search and
only replace the ' and not the entire ^p'??
Thanks all.
 
I should have said, search for ^p' and replace with ^p.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top