Code to look for a count of the number of times a string appears within another string:
Dim intOccurence As Integer
intOccurence = Regex.Matches(strStringToSearchWithin,
Regex.Escape(strStringToSearchFor)).Count
My professional notes on programming. Included in my notes are discussions on VB.NET, Microsoft Office, and some C#. I am just starting to learn about C# so as I learn more I will add more.
No comments:
Post a Comment