Advertisement
ASP_Volume3 Data Structures #56281

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.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
<%
'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
%>
Upload
Original Comments (3)
Recovered from Wayback Machine