Counting Strings Found
Hi, i'm wondering if anyone knows of a way to count how many times a certain string is found within a variable.
Say i had:
var blah="Here is a string";
And i wanted to count how many times it found an 'i' in that, how might i go about doing that?