1function splitMulti(str, tokens){
2 var tempChar = tokens[0]; // We can use the first token as a temporary join character
3 for(var i = 1; i < tokens.length; i++){
4 str = str.split(tokens[i]).join(tempChar);
5 }
6 str = str.split(tempChar);
7 return str;
8}
9