看看VBscript一段关于电子邮件代码,有什么问题?
看看VBscript一段关于电子邮件代码,有什么问题?vemail=Trim(Request.Form("email"))
Dim regEx, Match ' Create variables.
Set regEx = New RegExp ' Create a regular expression object (stupid, huh?)
regEx.Pattern = "^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$" 'Sets pattern.
regEx.IgnoreCase = True ' Set case insensitivity.
Set Match = regEx.Execute(vemail) ' Execute search.
if match.count then
response.Write Infobox("用户注册出错,下面是产生错误的可能原因:请输入正确的联系邮箱!","back","")
response.end
end if