how many times a string is repeated in another string
#1

Hi, i have a problem. I need to know how many times a string is repeated in another string.

Example:
Code:
new string[128], string2[128];
string = "No/nNo/nNo";
string2= "No";
I need to know how many times the string "No"(string2) is repeated in "No/nNo/nNo"(string1).
The result shoud be 3 times. What function can I use?

P.S. Sorry for my bad english
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)