请高手帮忙!
写了一小段ASP代码,如下:
<%
Dim Re, Match, Matches
Set Re = New RegExp
Re.Pattern = "(\w+)@(\w+)\.(\w+)"
Set Matches = Re.Execute("dtsxs@hotmail.com")
Set Match = Matches(0)
retStr = "1: " & Match & "<br>"
retStr = retStr & "2: " & Match.SubMatches(0)
retStr = retStr & "<br>"
retStr = retStr & "3: " & Match. SubMatches(1)
Response.write(retStr)
%>
为什么在有些机器上能运行,有些机器上不能运行.
报错为:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
/mktg/gallery/news/test.asp, line 6
为什么啊? 着急等待中~~~~~~~~~~~~~~~
问题点数:20、回复次数:4Top
1 楼KimSoft(革命的小酒天天醉-http://blog.csdn.net/kimsoft/)回复于 2006-03-01 17:47:34 得分 0
对象不支持此属性或方法,错误行数,第6行。Top
2 楼shenxs()回复于 2006-03-02 08:47:00 得分 0
我知道是Set Match = Matches(0) 那里错误,但就是说这个方法在有些机器上能运行,有些机器上不能运行,这是怎么回事? 请帮忙解答,谢谢大家!Top
3 楼shenxs()回复于 2006-03-03 12:53:50 得分 0
怎么没高手帮忙啊, ~~~~~~~~~~~~~~~Top
4 楼mrwang2000(王先生)回复于 2006-03-03 13:10:42 得分 0
有可能是RegExp版本低于5.0,这样的机器应该会出错
详细请参见
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/05f9ee2e-982f-4727-839e-b1b8ed696d0a.asp
Top




