Find and replace in word

R

raghumvs

Hi Guys

I have a very simple requirement in word. I have a text file which as
some huge text. My requirement is to find one word in a line and
replace it with empty line. For example
*****************
Total: 1 processes, 9 lwps, load averages: 0.23, 0.32, 0.39

1520 spdpluss 217M 43M sleep 58 0 0:00.32 0.3% siebmtsh/9
Total: 1 processes, 9 lwps, load averages: 0.25, 0.32, 0.39

1520 spdpluss 217M 43M sleep 58 0 0:00.32 0.3% siebmtsh/9
Total: 1 processes, 9 lwps, load averages: 0.23, 0.32, 0.39
******************
Find Total: and replace the line with nothing, So the output should
like like

1520 spdpluss 217M 43M sleep 58 0 0:00.32 0.3% siebmtsh/9
1520 spdpluss 217M 43M sleep 58 0 0:00.32 0.3% siebmtsh/9


I tried lot of options to find this out on net but no luck. Pls let me
know if you have some ideas on the above.

thank you
 
B

Beth Melton

If the line that begins with Total has a paragraph mark at the end
then this should work:

Find: Total*^13
Replace with: (leave blank)
Make sure you have "Use Wildcards" selected in your Search Options.

Once you've replace all, if you need to clean up empty paragraphs then
use:

Find What: ^p^p
Replace With: ^p
Make sure "Use Wildcard" is *not* selected in your Search Options

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
Top