Replace a group of characters in a string
Description:
How to Replace a group of characters in a string using ASP and VB Script.
Code:
<%
stringvariable = "This is a sample text!"
Response.Write(Replace(stringvariable, "text", "number one"))
%>
See working example:
Keywords:
ASP: Response.Write
VBScript: Replace
|