Answers for "counting number of times a string is in another string"

0

counting number of times a string is in another string

var temp = "This is a string.";
alert(temp.split('is').length-1);
Posted by: Guest on April-28-2022

Code answers related to "counting number of times a string is in another string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language