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

首頁 > 開發 > 綜合 > 正文

REGULAR EXPRESSION IN VBSCRIPT

2024-07-21 02:15:30
字體:
來源:轉載
供稿:網友
  • 網站運營seo文章大全
  • 提供全面的站長運營經驗及seo技術!
  •  

    regular expression in vbscript
    object regexp is used to create and execute regular expression

    ex.
    code:
    strtarget="test testing tested attest late start"
    set objregexp= new regexp   'create a regular expression

    objregexp.pattern="test*"   'set the search pattern
    objregexp.ignorecase=false  'set the case sensitivity
    objregexp.global=true       'set the scope

    set colmatches=objregexp.execute(strtarget)  'execute the search

    for each match in colmathes                  'iterate the colmatches collection
     response.write "match found at position" & match.firstindex & "."
     response.write "matched value is '" & match.value & "',<br>"
    next

    tested result:
    match found at position 0. matched value is 'test'.
    match found at position 5. matched value is 'test'.
    match found at position 13. matched value is 'test'.
    match found at position 22. matched value is 'test'.

    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 利辛县| 宜都市| 阜新市| 岳阳县| 壤塘县| 冕宁县| 交口县| 夏津县| 武隆县| 许昌县| 扶沟县| 文水县| 保山市| 嘉禾县| 长武县| 格尔木市| 香港| 桃源县| 阿鲁科尔沁旗| 莎车县| 万山特区| 区。| 清涧县| 香港 | 博乐市| 公主岭市| 大姚县| 集安市| 普陀区| 宁南县| 汝南县| 瑞金市| 七台河市| 聊城市| 建水县| 大同市| 许昌市| 肥城市| 北京市| 潞城市| 襄汾县|