Counting number of occurrences of a sub-string within a string in C#? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Counting number of occurrences of a sub-string within a string in C#?

NickFNickF USAPosts: 132Member

I need to count the number of occurrences of a sub-string within a string in C#. Can you please let me know how to do it?

Tagged:

Comments

  • HTMLKingKongHTMLKingKong UKPosts: 6Member

    I'm new to this forum and not sure of the posting rules, but i would guess I can't post a full answer. Check out the IndexOf method. theString.IndexOf("string",startPoint);

Sign In or Register to comment.