split a string with multiple separators in javascript?


multibox text area values
var urlsArr = textarea.value.replace(/\r\n/g, "\n").split(/[\n,]+/);

Comments