I've gone through manipulation to get strings into a list of string as below. However, it's still not distinct as it takes the spaces or capital letters to be unique so I end up with duplicate values even though they are the same....is there an easier way
to ignore white spaces and capital/lower case when getting distinct values?
result = comments.Split(new string[] { "\n", "\r\n", "\n\n", ",", "\\n", ";"," ;", "; ","<br/>", "<br>", "and"}, StringSplitOptions.RemoveEmptyEntries);
var distinctWords = new List<string>(result.Distinct());
So for example, the distinctWords returns the following:
Roger
ROGER
Dr. Kale
Dr. Kale
(note: the last one has a space in the string at the end) i.e. "Dr. Kale " vs the one above, "Dr. Kale" that doesn't hav ...
Go to the complete details ...