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

首頁 > 編程 > ASP > 正文

檢測(cè)函數(shù) asp class

2024-05-04 11:02:47
字體:
供稿:網(wǎng)友
復(fù)制代碼 代碼如下:
<%
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
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 大荔县| 平阳县| 青田县| 宾川县| 凤阳县| 那曲县| 中超| 平度市| 蓝田县| 伊金霍洛旗| 调兵山市| 贵南县| 财经| 平利县| 元阳县| 九寨沟县| 乌拉特后旗| 莱芜市| 本溪| 苏州市| 忻城县| 呼伦贝尔市| 娄烦县| 临湘市| 盐亭县| 张北县| 容城县| 革吉县| 绿春县| 南昌市| 锦州市| 深州市| 贺州市| 岑溪市| 永安市| 潼关县| 汝南县| 庆城县| 庆城县| 茂名市| 临武县|