String Replace in Classic ASP!

Just like PHP there are some very good in-build functions also there in Classic ASP. Today we are going to see how to replace a string in Classic ASP.

If you are a PHP programmer, you should know str_replace();

Likewise in Classic ASP it is Replace();

Lets start a simple replace example (replace a single character):

Output:
mummy becomes mommy

 

Another example of how to replace a string (replace entire string):

Output:
I want to buy a Car

I hope this example is pretty well for you to understand the string replace function in Classic ASP.

 

Related Posts

Leave a Reply