const sampleText = "Hello 1 World 2 !!!" console.log(sampleText.split(/(d)/))
//Using regex to split in Javascript var myText = "This is a string, to spliT: with many marker,like comma"; splitData = myText.split(/[,. s]/);