这段代码最后几句我不明白,请指点。。。
function isnaw(str)
for i=1 to len(str)
str1=mid(str,i,1)
if (Asc(str1)> Asc( "A ") and Asc(str1) <Asc( "Z ")) and len(str)=16 then isw=1 ---判断是否为大写16位字母
next
if isw=1 then
isnaw=true
else
isnaw=false
end if
end function
[bo]pw= "123qq "
if isnaw(pw) then =------这里是判断什么?是不是该这样写[color=Blue]isnaw(pw) if isnaw=true then .下面。。。。。
response.write "y "
else
response.write "n "
end if [/bo][/color]
Function IsDaxie(patrn, str)
if len(str)<>16 then
IsDaxie=false
else
Dim regEx, retVal ' 建立变量。
Set regEx = New RegExp ' 建立正则表达式。
regEx.Pattern = patrn ' 设置模式。
regEx.IgnoreCase = FALSE ' 设置是否区分大小写。
retVal = regEx.Test(str) ' 执行搜索测试。
If retVal Then
IsDaxie= true
Else
IsDaxie = false
End If
end if
End Function
response.write( IsDaxie("^[A-Z]+$","AAAAAAAAAAAAAAAa"))
Function IsDaxie(str)
if len(str)<>16 then
IsDaxie=false
else
Dim regEx, retVal ' 建立变量。
Set regEx = New RegExp ' 建立正则表达式。
regEx.Pattern = "^[A-Z]+$" ' 设置模式。
regEx.IgnoreCase = FALSE ' 设置是否区分大小写。
retVal = regEx.Test(str) ' 执行搜索测试。
If retVal Then
IsDaxie= true
Else
IsDaxie = false
End If
end if
End Function
response.write( IsDaxie(你的字符串))
%>