Friday, October 8, 2010

VBScript Length property


Length property

Back to text search to find the length of the match.

object.Length

object parameter is always a Match object.

Explain
The following code shows the Length property:

Function RegExpTest (patrn, strng) Dim regEx, Match, Matches''to establish variable. Set regEx = New RegExp''the establishment of regular expressions. regEx.Pattern = patrn''set the pattern. regEx.IgnoreCase = True''settings are case-sensitive. regEx.Global = True''set to full usability. Set Matches = regEx.Execute (strng)''perform a search. For Each Match in Matches''traverse Matches collection. RetStr = RetStr & match & I & at RetStr = RetStr & Match.FirstIndex &. Match the length of RetStr = RetStr & Match.Length RetStr = RetStr & characters. & VbCRLF Next RegExpTest = RetStrEnd FunctionMsgBox (RegExpTest (is., IS1 is2 IS3 is4))






Recommended links:



Of c # (11) enumeration (Enums)



Aspect-oriented (AOP) and Object-oriented (OOP) [1]



"NBA 2K10" My player - do not modify the top center of the Achievements are not delegated



Custom programming of the intercept keystrokes VB.NET control action



Dealers have to learn to make money, "Pong" manufacturers that moneybags



MPEG to 3GP



Ma PK Shi Yuzhu, in the end who is more cattle?



AVI to MPEG4



GOOD Recreation



Usb memory sticks theater of the future



The outcome of the countryside helpless computer



18th "Gold-collar workplace," Senior Human Resources Fair



Hot Nature - Screen SAVERS



Dell Digital denial DISTRIBUTION relationship with HP induced breakdown



Storage Timers And Time Synch



XviD to MP4



No comments:

Post a Comment