asp如何写正则表达式(asp 正则表达式)-编程之家

如何用ASP(VBSCRIPT)正则表达式判断英文字母和数字?

函数CreateRegExp(模式)

dim result:set result = CreateObjectVBscript。正则表达式& quot)

结果。全局=真

结果。IgnoreCase=true

结果。模式=模式

结果。MultiLine=true

set CreateRegExp=result

end Function Function IsRightText(text)if(Len(text)= 0)then IsRightText = false exit Function end if dim regex:set regex = CreateRegExp(& quot;^[a-za-z0-9]

$")dim result:result = regex . test(text)setregex = nothing is right text = resulted function使用时:dim aa = & quotakfjkajf * & & quot;if (IsRightText(a))那么& # 39;当文本匹配时结束。

myserver是什么软件?

MyServer是一款WEB服务器软件,支持fastcgi,isapi扩展,断点续传、大文件下载、正则表达式url重写、虚拟目录等常用功能,是你快速建站及个人HTTP文件服务器的好帮手。支持php,asp,asp.net等服务器脚本,性能完全超越IIS等很多主流WEB服务器软件。