In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "the use of Global attribute in VBS". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the use of the Global attribute in VBS"!
Sets or returns a Boolean value indicating whether the pattern matches all or only the first one when searching for the entire string.
Object.Global [= True | False]
Object parameters are always RegExp objects. If the search is applied to the entire string, the value of the Global property is True, otherwise its value is False. The default setting is False.
Description
The following code illustrates the use of the Global property (changing the value assigned to the Global property and observing its effect):
Function RegExpTest (patrn, strng) Dim regEx, match,matches' create variables. Set regEx = New RegExp 'establishes the canonical expression. RegEx.Pattern = patrn 'sets the mode. RegEx.IgnoreCase = True 'sets whether letters are case sensitive. RegEx.Global = True 'sets the properties of the whole process. Set matches= regEx.Execute (strng) 'performs the search. For each match in matches' repeat matching set RetStr=RetStr& "Match found at position" RetStr=RetStr&Match.FirstIndex& ". Match Value is'" RetStr=RetStr&Match.Value& "." & vbCRLF NextRegExpTest=RetStrEnd FunctionMsgBox (RegExpTest ("is.", "IS1 is2 IS3 is4")) so far, I believe you have a deeper understanding of "the use of the Global attribute in VBS". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.