ASP/VBScript Replace() Returns a string in which a specified substring has been replaced with another substring a specified number of times.
ShotDev Focus:
- Using Asp and Replace() function.
Example
asp_replace.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Replace("My Name is Weerachai Nukitram", "Weerachai", "Win") %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_replace.asp
Screenshot