Google Answers Logo
View Question
 
Q: M.S. Word Help ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: M.S. Word Help
Category: Computers
Asked by: ratan-ga
List Price: $2.00
Posted: 27 Mar 2003 14:04 PST
Expires: 26 Apr 2003 15:04 PDT
Question ID: 181968
How can I use the " Find and Replace " function of MS Word to find and
replace entire strings beginning with <script> and ending with
</script> in a document. The objective is to find these two words and
all the intervening characters including the two and delete them
(replace them with nothing). I understand that using a wild card to
represent the intervening characters would do the trick, but I am
unable to make it work.
Answer  
Subject: Re: M.S. Word Help
Answered By: chellphill-ga on 27 Mar 2003 14:56 PST
Rated:5 out of 5 stars
 
In the search and replace tool, use the wildcard option.
You have to use escape characters to escape out the
greater-than/less-than characters.

The string you will want to search for is \<script\>*\</script\>

The \ character is your escape character.

chellphill-ga

Request for Answer Clarification by ratan-ga on 10 Apr 2003 08:54 PDT
Please clarify what you mean as "escape out". And, how does it work.
Thanks

Clarification of Answer by chellphill-ga on 10 Apr 2003 13:53 PDT
Hi  ratan-ga ,
To clarify "escaping out", the escape code "\" means to treat the
following character as a normal ASCII character. Without the escape
character, the ">" symbol would represent the meaning of "Greater
than" (e.g. 1>0 "one is greater than zero")
If you want, you should be able to just copy this, 

\<script\>*\</script\> 

And then paste it.

Hope this helps
Thanks!
chellphill-ga
ratan-ga rated this answer:5 out of 5 stars
Great answer.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy