最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

asp 實(shí)現(xiàn)檢測字符串是否為純字母和數(shù)字組合的函數(shù)

 更新時間:2007年08月08日 12:04:31   作者:  
<%
'******************************
'函數(shù):CheckString(strng)
'參數(shù):strng,待驗(yàn)證字符串
'作者:阿里西西
'日期:2007/7/13
'描述:檢測字符串是否為純字母和數(shù)字組合
'示例:<%=CheckString(strng)%>
'******************************
Function CheckString(strng)
    CheckString = true
    Dim regEx, Match
    Set regEx = New RegExp
    regEx.Pattern = "^[A-Za-z0-9]+$"
    regEx.IgnoreCase = True
    Set Match = regEx.Execute(strng)
    if match.count then CheckString= false
End Function
%>
檢測是否為中文字符
<%
'******************************
'函數(shù):CheckChinese(strng)
'參數(shù):strng,待驗(yàn)證字符
'作者:阿里西西
'日期:2007/7/13
'描述:檢測是否為中文字符,返回值:中文為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
%>

相關(guān)文章

最新評論

丰顺县| 兴化市| 莆田市| 吐鲁番市| 浙江省| 磐石市| 浙江省| 蓝山县| 长兴县| 临夏市| 莱芜市| 泸水县| 普兰店市| 汽车| 合阳县| 旌德县| 青神县| 平山县| 桑植县| 蓬溪县| 元朗区| 普洱| 无锡市| 安溪县| 克东县| 韶关市| 全州县| 黑水县| 新丰县| 邮箱| 于田县| 永川市| 新宁县| 富锦市| 枣强县| 韩城市| 郑州市| 江西省| 密云县| 乌拉特前旗| 子长县|