182
rated 0 times
[
185]
[
3]
/ answers: 1 / hits: 28812
/ 13 Years ago, fri, july 15, 2011, 12:00:00
I have a string that devides some data using ','
. Now I want to count the occurences of ','
in that string. I tried:
var match = string.match('/[,]/i');
But this gives me null If I try to get the length of the match array. Any ideas?
More From » javascript