<%
'*******************************
'기능 : checkstring (strng)
'매개 변수 : strng, 검증 할 문자열
'저자 : Alixi
'날짜 : 2007/7/13
'설명 : 끈이 순수한 글자와 숫자의 조합인지 여부를 감지합니다.
'예 : <%= checkstring (strng)%>
'*******************************
FunctionCheckString (strng)
checkstring = true
Dimregex, 일치
setRegex = NewRegexp
regex.pattern = "^[a-za-z0-9]+$"
regex.ignorecase = true
setMatch = regex.Execute (strng)
ifmatch.countthencheckstring = false
최종 기능 장애
%>
중국어인지 여부를 감지하십시오
<%
'*******************************
'기능 : Checkchinese (strng)
'매개 변수 : strng, 확인할 문자
'저자 : Alixi
'날짜 : 2007/7/13
'설명 : 중국어인지, 반환 가치 : 중국어로는, 그렇지 않으면 거짓을 감지하십시오.
'예 : <%= checkinese (strng)%>
'*******************************
Functioncheckchinese (strng)
checkinese = true
Dimregex, 일치
setRegex = NewRegexp
regex.pattern = "/||/#|/& |? |/|/%|/*| // |/. |/, |/; |/'|/: |/-|/_ |/|/|/|/" "|/= |/<| ///"
regex.ignorecase = true
setMatch = regex.Execute (strng)
ifmatch.countthencheckchinese = false
최종 기능 장애
%>