Hello I am using indexOf method to search if a string is present inside another string. But I want to get all the locations of where string is? Is there any method to get al
You can use indexOf('searchstring', ), using the index returned 'last time round' + 1 until you get -1 back.