Sub CountMatches(text As String,pattern As String) As IntDim tmp_count As Int = 0Dim Matcher1 As Matcher
Matcher1 = Regex.Matcher(pattern, text)
DoWhile Matcher1.Find
tmp_count = tmp_count +1LoopReturn tmp_count
EndSub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.