>>> "Test___1___".split(/___/,3) Array 0 "Test" 1 "1" 2 "" length 3 Array Object["Test", "1", ""] >>> "Test___1___".split(/___/,2) Array 0 "Test" 1 "1" length 2 Array Object["Test", "1"]