is it possible to make a regex with multiple delimiters? For example I want to split a string which can come in two forms: 1. string1, string2, string3 or 2. string1,string2,string3. I've been trying to do this in javascript but with no success so far.