国产探花免费观看_亚洲丰满少妇自慰呻吟_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'.

    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 嘉义市| 海兴县| 榆社县| 大足县| 南宫市| 库尔勒市| 扬中市| 乌拉特中旗| 宜兰县| 朝阳县| 德阳市| 重庆市| 兰西县| 洪雅县| 胶南市| 孝义市| 玉树县| 蓬溪县| 淮北市| 密山市| 房山区| 台中市| 娄底市| 乌兰浩特市| 同心县| 绥阳县| 安康市| 余江县| 民勤县| 普定县| 天水市| 盐津县| 长寿区| 石渠县| 奇台县| 电白县| 彭州市| 酒泉市| 吉水县| 辰溪县| 称多县|