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 USAMember Posts: 132

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 UKMember Posts: 6

    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.