I\'d like to split a string only the at the first n occurrences of a delimiter. I know, I could add them together using a loop, but isn\'t there a more straight forward appr
var s='Split this, but not this', a=s.split(','), b=a[0].split(' '); b.push(a[1]); alert(b);
alerts ['Split', 'this', 'but not this']