哦 最后一句写错了 改正如下
str=request.form("text")
Dim re
Set re=new RegExp
re.IgnoreCase =True
re.Global=True
re.Pattern="(^[a-z][a-z0-9]*?)"
str=re.replace(str,"")
if str<>"" then
response.write ("错误")
end if
str=request.form("text")
Dim re,str2
Set re=new RegExp
re.IgnoreCase =True
re.Global=True
re.Pattern="(^[a-z][a-z0-9]*?)"
str2=re.replace(str,"")
if str<>str2 then
response.write ("错误")
end if