I would like to do a check to count the number of times a ":" appears in a string. Already I have this code:
if (string.IsNullOrWhiteSpace(entryTrimmed) ||
isAvailable != null ||
entryTrimmed.StartsWith("::") ||
entryTrimmed.EndsWith("::")) ||
entryTrimmed.
{
OK_Button.IsEnabled = false;
return;
}
Is there a simple way that I could also include where there are more than three ":"?