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.
Splitting URL by .com/ or .net/
url.split(/\.com\/|\.net\//)