Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Find and Replace
Using Word 2003 on CP platform. I'm trying to edit a large document which is
being converted from another software to Word. There are lines of control commmands that I need to delete. Fortunately, each line begins with the character #. I don't see a way of having the find and replace feature search for commands beginning with # and deleting the entire line. Can someone help? |
#2
|
|||
|
|||
It depends what constitutes a line in your document, but at its simplest
a wildcard search for #*^13 will find your commands if they are on a line of their own - see http://www.gmayor.com/replace_using_wildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org jay wrote: Using Word 2003 on CP platform. I'm trying to edit a large document which is being converted from another software to Word. There are lines of control commands that I need to delete. Fortunately, each line begins with the character #. I don't see a way of having the find and replace feature search for commands beginning with # and deleting the entire line. Can someone help? |
#3
|
|||
|
|||
In the Find What box put this:
(^13)#[!^13]{1,}^13 In the Replace With box put this: \1 And check the Use Wildcards feature. Then you will have to run Replace All twice (to get any lines with # that are sequential to each other that are missed on the first pass). Getting them all in one pass would require a macro and I'm trying to keep this simple for you. Larry jay wrote: Using Word 2003 on CP platform. I'm trying to edit a large document which is being converted from another software to Word. There are lines of control commmands that I need to delete. Fortunately, each line begins with the character #. I don't see a way of having the find and replace feature search for commands beginning with # and deleting the entire line. Can someone help? |
#4
|
|||
|
|||
Evidently I didnot do the right thing. An example of the control line is:
#VERSE_COMMENTARY:Ex 4:20 Where the information after the colon changes. "jay" wrote: Using Word 2003 on CP platform. I'm trying to edit a large document which is being converted from another software to Word. There are lines of control commmands that I need to delete. Fortunately, each line begins with the character #. I don't see a way of having the find and replace feature search for commands beginning with # and deleting the entire line. Can someone help? |
#5
|
|||
|
|||
A bigger sample than just the one line would be helpful (including the other
text you wish to keep); however wildcard seartch I posted earlier will find this line *provided the line ends with a paragraph mark* i.e #*^13 replace with nothing Did you check the wildcard check box? -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org jay wrote: Evidently I didnot do the right thing. An example of the control line is: #VERSE_COMMENTARY:Ex 4:20 Where the information after the colon changes. "jay" wrote: Using Word 2003 on CP platform. I'm trying to edit a large document which is being converted from another software to Word. There are lines of control commmands that I need to delete. Fortunately, each line begins with the character #. I don't see a way of having the find and replace feature search for commands beginning with # and deleting the entire line. Can someone help? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find and Replace GREEK symbols in XP, 2K & 97 | Microsoft Word Help | |||
Problem with function "Find and Replace" in Word. | Microsoft Word Help | |||
Find and Replace | New Users | |||
Find and Replace anomaly | Microsoft Word Help | |||
find and replace symbols | New Users |