For a String array such as:
string[]={"bmw"," ","1bmw"," "};
I need to calculate how often the bmw substring occurs in this array. In this example, this happens 2 times.
How to write this in C #?
I also want to ignore the symbol of capital,
sting [] = {"bmw", "," BMw "," 1bmw "}
then the result of the count is 3.
what should I do?
#
Thanks for the reply to everyone.
source share