I am very new to JavaScript, so please excuse me if this is a basic question.
I need to search a given string for the number of times another string exist within the given string. For example if String 1 = "ABCDEFA", I need to find how many times "A" exist in String 1. I don't care about the position(s) of "A".
Thanks in advance for any suggestions.
I need to search a given string for the number of times another string exist within the given string. For example if String 1 = "ABCDEFA", I need to find how many times "A" exist in String 1. I don't care about the position(s) of "A".
Thanks in advance for any suggestions.