// the g in the regular expression says to search the whole string // rather than just find the first occurrence var count = (temp.match(/is/g) || []).length;
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website