How do I split a string with multiple separators in JavaScript? I\'m trying to split on both commas and spaces but, AFAIK, JS\'s split function only supports one separator.
a = "a=b,c:d" array = ['=',',',':']; for(i=0; i< array.length; i++){ a= a.split(array[i]).join(); }
this will return the string without a special charecter.