I didn\'t get an optimized regex that split me a String basing into the first white space occurrence:
var str=\"72 tocirah sneab\";
I need
Late to the game, I know but there seems to be a very simple way to do this:
const str = "72 tocirah sneab";
const arr = str.split(/ (.*)/);
console.log(arr);
This will leave arr[0] with "72" and arr[1] with "tocirah sneab". Note that arr[2] will be empty, but you can just ignore it.
For reference:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split#Capturing_parentheses