Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

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:

<html> <body> <%
stringvariable = "This is a sample text!"
Response.Write(Replace(stringvariable, "text", "number one"))
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: Replace


     Mobile Phones | Fast Loans | Broadcast Antenna Systems - HF/MF | Online Loans | Vanzari Auto
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp