手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp检测是否为中文字符函数
asp检测是否为中文字符函数
摘要:

<%

'******************************

'函数:CheckChinese(strng)

'参数:strng,待验证字符

'描述:检测是否为中文字符,返回值:中文为true,否则false

'示例:<%=CheckChinese(strng)%>

'******************************

Function CheckChinese(strng)

CheckChinese = true

Dim regEx, Match

Set regEx = New RegExp

regEx.Pattern = "||#|&|?|@|%|*|/|.|,|;|'|:|-|_|+|^|""|=|<|>| "

regEx.IgnoreCase = True

Set Match = regEx.Execute(strng)

if match.count then CheckChinese= false

End Function

%>

【asp检测是否为中文字符函数】相关文章:

asp复制文件夹代码

asp之字符串操作函数

asp+ajax检测用户名是否在存

遍历目录以及目录下文件的函数

ASP和javaScript中的字母大小写转换函数代码

asp 判断数字是否整形

sp判断中西混字符串长度

asp的一个日期格式化函数

ASP 非法字符过滤函数

asp 删除图片与文件函数

精品推荐
分类导航