I have a list which is as follows.
List<string> Animallist = new List<string>();
Animallist.Add("cat");
Animallist.Add("dog");
Animallist.Add("lion and the mouse");
Animallist.Add("created the tiger");
I have a textbox where I enter
“Do not blame God for having created the TIGER, but thank him for not having given it wings””
I would like to see which word(s) from the textbox matches items in the list and print the list on the console. The search has to be case insensitive. i.e TIGER in the text box should match tiger in the list.
in the above example “created the tiger” will be printed on the console.
or, if you also want to search the words:
oh, now i’ve seen your long text