Solved

Compare One String with Another: Classic ASP

Posted on 2011-02-21
2
610 Views
Last Modified: 2012-05-11
Hi Experts,

Cant get my head round this classic ASP problem.

Have myString = "test" and yourString="test this string"

I  want youString to equal "this test" if myString = "test"

Or in another way take out a word in yourString if it equals myString.

Cheers,
Numb
0
Comment
Question by:ComfortablyNumb
2 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 34941872
take out a word in yourString if it equals myString.
means

 myString = "test" and yourString="test this string"
result :this string


myString = "test"
yourString = "test this string"
yourString = Replace(yourString, "myString", "")

Response.Write yourString
0
 

Author Closing Comment

by:ComfortablyNumb
ID: 34942432
Thanks. Definitely not thinking straight today!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question