VBS tutorial: VBScript property – value property

Time:2022-1-3

Value property

Returns a matching value or text found in a search string.

object.Value

objectParameter is always oneMatchObject.

explain

The following code describesValueProperty usage:

Function regexptest (PATRN, strng) dim regex, match, matches' create variables. Set regex = new regexp 'establish a regular expression. regEx. Pattern = pattern 'sets the pattern. regEx. Ignorecase = true 'sets whether letters are case sensitive. regEx. Global = true 'set full availability. Set Matches = regEx. Execute (strng) 'execute the search. For each match in matches' traverse the matches set. 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"))

Recommended Today

Vue2 technology finishing 3 – Advanced chapter – update completed

3. Advanced chapter preface Links to basic chapters:https://www.cnblogs.com/xiegongzi/p/15782921.html Link to component development:https://www.cnblogs.com/xiegongzi/p/15823605.html 3.1. Custom events of components 3.1.1. Binding custom events There are two implementation methods here: one is to use v-on with vuecomponent$ Emit implementation [PS: this method is a little similar to passing from child to parent]; The other is to use ref […]