国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

檢測函數 asp class

2024-05-04 10:59:07
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

<%
Dim Cmd
Set Cmd = New Cls_Command
Class Cls_Command
    Private Re

    Public Function IsPositiveInteger(value)
        Set Re = New RegExp
        Re.Pattern = "^[1-9][/d]*$"
        Re.IgnoreCase = True
        Re.Global = True
        IsPositiveInteger = Re.Test(value)
        Set Re = Nothing
    End Function

    Public Function IsDigit(vString)
        If vString = "" Then IsDigit = False : Exit Function
        Set Re = New RegExp
        Re.Pattern = "^[a-z]+$"
        Re.Global = True
        Re.IgnoreCase = True
        Re.MultiLine = True
        IsDigit = Re.Test(vString)
        Set Re = Nothing
    End Function

    Public Function IsAlpha(vString)
        If vString = "" Then IsAlpha = False : Exit Function
        Set Re = New RegExp
        Re.Pattern = "^[/d]+$"
        Re.Global = True
        Re.IgnoreCase = True
        Re.MultiLine = True
        IsAlpha = Re.Test(vString)
        Set Re = Nothing
    End Function

    Public Function IsAlphaDigit(vString)
        If vString = "" Then IsAlphaDigit = False : Exit Function
        Set Re = New RegExp
        Re.Pattern = "^[a-zA-Z/d]+$"
        Re.Global = True
        Re.IgnoreCase = True
        Re.MultiLine = True
        IsAlphaDigit = Re.Test(vString)
        Set Re = Nothing
    End Function
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 天门市| 广宗县| 天镇县| 韶关市| 中阳县| 涟源市| 五莲县| 轮台县| 洪洞县| 镇雄县| 耒阳市| 胶南市| 汕尾市| 韩城市| 彝良县| 吴江市| 朝阳市| 高唐县| 常宁市| 安阳县| 赫章县| 寿宁县| 八宿县| 西峡县| 林州市| 漯河市| 信丰县| 建水县| 台东县| 灵丘县| 宜君县| 临武县| 屯留县| 武强县| 乐陵市| 贵德县| 合山市| 富民县| 敦煌市| 肃北| 巴林右旗|