README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | snowboardr |
| Level | Beginner |
| User Rating | 3.4 (17 globes from 5 users) |
| Compatibility | ASP (Active Server Pages) |
| Category | Coding Standards |
| World | ASP / 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
%>