杰网资源 Design By www.escxy.com

Value 属性

返回在一个搜索字符串中找到的匹配的值或文本。

object.Value

object 参数总是一个 Match 对象。

说明

下列代码说明了 Value 属性的用法:

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         ' 遍历Matches集合。    RetStr = RetStr & "Match " & I & " found at position "    RetStr = RetStr & Match.FirstIndex & ". Match Value is "'    RetStr = RetStr & Match.Value & "'." & vbCRLF  Next  RegExpTest = RetStrEnd FunctionMsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
标签:
|VB|BS|S教|教程|程V|VB|Bs|sc|cr|ri|ip|pt|t属|属性|性V|Va|al|lu|ue|e属|属性|性|

杰网资源 Design By www.escxy.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
杰网资源 Design By www.escxy.com