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.
Perhaps you should do some sort of string replace to turn one separator into the other separator so you then only have one separator to deal with in your split.