Solved

Compare One String with Another: Classic ASP

Posted on 2011-02-21
2
608 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now