Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

counting number of times a string is in another string

var temp = "This is a string.";
alert(temp.split('is').length-1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #counting #number #times #string #string
ADD COMMENT
Topic
Name
2+8 =