Forum Discussion

anhvu's avatar
anhvu
Frequent Contributor
7 years ago

How to count repeated strings in a line?

Hello,   Could you someone show me how to count repeated string in a line?    string a = "Hello how are you Hello, Hello, Hello. Hello"   I would like to count how many "Hello" in the  string. ...