28,391
社区成员
发帖
与我相关
我的任务
分享
s = " <P>编者注:{{{中国}}}本文为{{{上海}}}方面{{{北京}}} </P>"
With New RegExp
.Pattern = ".*?(?:(\{{3}(?:(?!\}{3})[\d\D])+\}{3})|$)"
.Global = True
Response.Write .Replace(s, "$1")
End With
<%
s = " <P>编者注:{{{中国}}}本文为{{{上海}}}方面{{{北京}}} </P>"
with new regexp
.Pattern = ".*?(\{{3}.*?\}{3}).*?"
.Global = True
response.write .replace(s,"$1")
end with
%>