Is there a way to count the number of occurrences of a specific character within a string?
For example, I have a string of text (it happens to be in a repeater, but I think that’s not critical to this question) “dog, cat, cassowary,” and I’d like to count how many commas appear in the string. In this case the answer would be three.
It seems like there ought to be a function like string.count(",") that would return 3 … but I have not found such a thing.
Thank you!
Jacque