28,390
社区成员
发帖
与我相关
我的任务
分享
<%
'str 原字符串
'string1 替换前字符串
'string2 替换后字符串
Function ReplaceAll(str,string1,string2)
Dim regEx,newstr
newstr = str
Set regEx = New RegExp
regEx.Pattern = string1
regEx.IgnoreCase = True
regEx.Global = True
newstr = regEx.Replace(newstr,string2)
ReplaceAll=newstr
End Function
s = "aaa<ddd<fddd<"
response ReplaceAll(s,"<","123")
%>