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


     Web Advertising | Internet Advertising | Internet Advertising | Internet Advertising | Web Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos