日历

« 2008-10-11  
   1234
567891011
12131415161718
19202122232425
262728293031 

统计信息

  • 访问量: 61
  • 日志数: 2
  • 建立时间: 2008-05-13
  • 更新时间: 2008-08-02

RSS订阅

我的最新日志

  • 正则表达

    2008-8-02

    Function RegExpTest(patrn,strng)
     Dim regEx,Match,Matches '建立变量
     Set regEx = New RegExp '创建一个正则表达式
     regEx.Pattern = patrn '设置正则表达式的匹配模式
     regEx.IgnoreCase = True '设置为不区分大小写
     regEx.Global = True '设置为全局可用
     Set Matches = regEx.Execute(strng) '执行搜索
     For Each Match In Matches '遍历所有匹配项
     RetStr = RetStr & "在"
     RetStr = RetStr & Match.FirstIndex & "找到匹配项,匹配项的值为"
     RetStr = RetStr & Match.value &"."& VbCrLf'vbcrlf是回车换行
     Next
     RegExpTest = RetStr
    End Function
    '调用RegExpTest
    MsgBox RegExpTest("Is.","IS1 is2 Is3 is4")

    '注意:1)如果regEx.IgnoreCase=False时,意为区分大小写,结果只显示 第一、三项

     '    2)如果regEx.Global=False时,意为只匹配第一个,结果只显示第一项

  • 无法删除破解版QTP9.2???

    2008-5-28

    本人机上安装了破解版QTP9.2版,今天系统自动检测到升级版,我也没多想,就点击是。结果升级后,QTP就不能用了。想删除也删不了。报错:“错误 -1603”。求助?????
Open Toolbar