Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using the search facility in Word | Microsoft Word Help | |||
Find/Replace misses search string in endnotes | Microsoft Word Help | |||
File Search Preview Pane | Microsoft Word Help | |||
File Search Preview Pane | Microsoft Word Help | |||
Problem with search feature in word 2002 | Microsoft Word Help |