Friday, September 24, 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:



Adobe Illustrater draw radish



WMV TO MOV



SEO copy content and duplicate content



Intermediate hospital "backward" sample



Report Audio Video TOOLS



Components And Libraries Specialist



AMD quad-core processor "Barcelona" prices announced



Dawn set sail: Shenzhen DENG Yihui (3)



Of! The RELATIONSHIP between SEO and UCD



Flash to MPEG



advanced java struts multi module TECHNIQUES



MPEG4 to WMV



Qualcomm CEO: WiMax 3G Will Compete In The Face Of Setbacks



Languages Education Report



No comments:

Post a Comment