#1   Report Post  
Jayne
 
Posts: n/a
Default Search string

I need to add commas before the "and" in a string of terms, e.g., apples,
oranges, and bananas. The document is nearly 400 pages long. Sometimes the
commas is there and sometimes not, so I need to find the instances where it
is not and add it. Is there any way to search using wildcards for something
like this?

Thanks!
  #2   Report Post  
Daiya Mitchell
 
Posts: n/a
Default Search string

Sideways approach:

In Tools | Options, Spelling and Grammar, click on Settings under Grammar,
and you should be able to tell Word whether you want it to check for "comma
before last list item." If you set that as you like, then Word should catch
these when you run Tools | Spelling and Grammar and offer to fix them for
you.


On 11/8/05 9:34 AM, "Jayne" wrote:

I need to add commas before the "and" in a string of terms, e.g., apples,
oranges, and bananas. The document is nearly 400 pages long. Sometimes the
commas is there and sometimes not, so I need to find the instances where it
is not and add it. Is there any way to search using wildcards for something
like this?

Thanks!


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

  #3   Report Post  
Tony Jollans
 
Posts: n/a
Default Search string

Well it depends on exactly what you've got but this should give you
something to work with:

Find: ([! ]{1,})( and [! ]{1,}) - that's left parenthesis, left angle
bracket (less than sign), left (square) bracket, exclamation mark, space,
right bracket, left brace, one, comma, right brace, right angle bracket,
right parenthesis, left parenthesis, space, a, n, d, space, left angle
bracket, left bracket, exclamation point, space, right bracket, left brace,
one, comma, right brace, right parenthesis.

Replace: \1,\2 - that's backslash, one, comma, backslash, two

--
Enjoy,
Tony


"Jayne" wrote in message
...
I need to add commas before the "and" in a string of terms, e.g., apples,
oranges, and bananas. The document is nearly 400 pages long. Sometimes

the
commas is there and sometimes not, so I need to find the instances where

it
is not and add it. Is there any way to search using wildcards for

something
like this?

Thanks!



  #4   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default Search string

Another sideways approach:

1. Search for " and" and replace with ", and".

2. Then search for two commas and replace with one.

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

"Jayne" wrote in message
...
I need to add commas before the "and" in a string of terms, e.g., apples,
oranges, and bananas. The document is nearly 400 pages long. Sometimes

the
commas is there and sometimes not, so I need to find the instances where

it
is not and add it. Is there any way to search using wildcards for

something
like this?

Thanks!


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the search facility in Word SBK Microsoft Word Help 0 October 12th 05 03:16 PM
Find/Replace misses search string in endnotes Jim K Microsoft Word Help 3 September 22nd 05 06:56 PM
File Search Preview Pane ndolinger Microsoft Word Help 0 August 10th 05 09:34 PM
File Search Preview Pane ndolinger Microsoft Word Help 2 August 10th 05 04:12 PM
Problem with search feature in word 2002 Ellen Microsoft Word Help 0 February 8th 05 09:31 PM


All times are GMT +1. The time now is 09:39 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"