30.12.2015, 16:09
(
Last edited by VincenzoDrift; 31/12/2015 at 09:49 AM.
)
Hi, i have a problem. I need to know how many times a string is repeated in another string.
Example:
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
Example:
Code:
new string[128], string2[128]; string = "No/nNo/nNo"; string2= "No";
The result shoud be 3 times. What function can I use?
P.S. Sorry for my bad english