Vbscript String Replace function in classic ASP provides the functionality to replace the part of a string with another substring or replace a character with new substring or character. In ASP, vbscript replace function enables you to replace the special characters from the string such as #, %, $, @ etc. Vbscript Replace string function finds the specified string pattern in the target string and replaces its each occurrence with other substring value specified in the function. Vbscript Replace string function can be applied to the values of vbscript variable of string type.
Replace( expression, find, replacement, start, count, compare )
Vbscript replace string function accepts 6 types of parameters as shown in the above syntax.
Except first 3 parameters of Vbscript Replace string function i.e. expression, find and replacement other 3 parameters are optional.
Click here to see the Examples of ASP Vbscript replace function…
Currently rated 5.0 by 1 people
Tags: vbscript, asp, vbscript replace, vbscript string functions, vbscript right, vbscript instrrev, vbscript mid, vbscript replace string function, vbscript trim, vbscript ltrim, vbscript rtrim, vbscript left, vbscript instr, vbscript lcase, vbscript ucase, vbscript len, vbscript strreverse, vbscript strcomp, vbscript space, vbscript string function
10/11/2008 3:33:00 AM