Search Tools Links Login

Replace String > Easy


Replace a string with something else. This is commented so even beginners can understand and see how to use it in your exisiting code.

Original Author: snowboardr

Code

<%
'lets replace .net with .com
Dim mystring, newstring
mystring = "www.mysite.net" 'Show what mystring is
newstring = Replace(mystring, ".net" , ".com")
'to print out your new string do like so:
Response.Write newstring
'Outputs:
'www.mysite.com
%>

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 104 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.