在ASP中Replace的语法为:Replace("字符串","要被替代的字符串","替代后的字符串","开始字符位置","替换次数")例如下面用vbscript做的(asp也是适用的):<script language="vbscript">a="test{qqq}deesdfafd{qqq}"a=replace(a,"{qqq}","{ppp}",1,1)document.write a</script>