D
Dana King
I'm looking for some other developers opinions, I'm trying to find the best
way to count strings within a string using VB.net.
I have tested five methods and have found the String.Replace method is the
fastest and the Regex.Matches.Count to be the slowest. I posted my results
and source code to my web site. If you could take a look and maybe suggest
an even faster method I'd like to hear from you. Also, if anyone can tell me
why Regex is so much slower than the rest I'd like to know about it.
Thanks.
http://www.dotnetmaniac.com/ArticleViewer.aspx?Key={4d9141de-2f82-4490-80ca-c9f725c4e291}
way to count strings within a string using VB.net.
I have tested five methods and have found the String.Replace method is the
fastest and the Regex.Matches.Count to be the slowest. I posted my results
and source code to my web site. If you could take a look and maybe suggest
an even faster method I'd like to hear from you. Also, if anyone can tell me
why Regex is so much slower than the rest I'd like to know about it.
Thanks.
http://www.dotnetmaniac.com/ArticleViewer.aspx?Key={4d9141de-2f82-4490-80ca-c9f725c4e291}