-
-
'ฟังก์ชั่น: 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
endfunction
-
ตรวจพบว่าเป็นตัวละครจีนหรือไม่
-
-
'ฟังก์ชั่น: checkchinese (strng)
'พารามิเตอร์: strng อักขระที่จะตรวจสอบ
'ผู้แต่ง: Alixi
'วันที่: 2007/7/13
'คำอธิบาย: ตรวจพบว่าเป็นอักขระภาษาจีนหรือไม่ค่าคืน: จริงในภาษาจีนมิฉะนั้นเท็จ
'ตัวอย่าง: <%= checkchinese (strng)%>
-
FunctionCheckchinese (strng)
checkChinese = true
dimregex, จับคู่
setregex = newregexp
regex.pattern = "/||/#|/& |? |/@|/%|/*| // |/. |/, |/; |/'|/: |/-|/_ |/+|/^|/" |/= |/<|
regex.ignorecase = true
setMatch = regex.execute (strng)
ifmatch.countthencheckchinese = false
endfunction
-