README.md

December 4, 2022 ยท View on GitHub

Replace String > Easy

Description

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

More Info

Submitted On
Bysnowboardr
LevelBeginner
User Rating3.4 (17 globes from 5 users)
CompatibilityASP (Active Server Pages)
CategoryCoding Standards
WorldASP / VbScript
Archive File

Source 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
%>