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
%>

—-想了解更多的linux相关异常处理怎么解决关注<计算机技术网(www.ctvol.com)!!>



本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/htmltutorial/76723.html

(0)
上一篇 2020年4月21日
下一篇 2020年4月21日

精彩推荐