Thursday, October 21, 2010

VBScript Global Properties



Global Properties

Sets or returns a Boolean value that specifies the search string pattern matching is all or only the first match.

object.Global [= True | False]

RegExp object is always the object parameters. If the search applied to the entire string, Global property is True, otherwise the value is False. The default is set to False.

Explain
The following code illustrates the usage of Global properties (change the value of property given to Global and to observe its effects):

Function RegExpTest (patrn, strng) Dim regEx, match, matches''to establish variable. Set regEx = New RegExp''establish a standard expression. regEx.Pattern = patrn''set the pattern. regEx.IgnoreCase = True''set to distinguish the letters are case-sensitive. regEx.Global = True''to set the whole nature. set matches = regEx.Execute (strng)''perform a search. for each match in matches''Repeat match 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))







Recommended links:



Braun Series 7 790cc Pulsonic Shaver An Effective



Let The Old Computer "rejuvenation"



Evaluate Business Databases And Tools



Dreamweaver 8 Style rendering toolbar glimpse



Best Astronomy



Grand View eHR followed the situation, to help reform public institutions to promote merit pay



XviD To WMV



GEM made The most rich of 10



How To Identify Real And Can Automatically Create Index Index



New accounting standards and tax law differences on how to coordinate



New Wang Zhidong: Eliminating "Sina label"



Symantec Said The New Storm Worm Detected



MKV TO Zune



AVI to DivX



No comments:

Post a Comment