//Using regex to split in Javascript var myText = "This is a string, to spliT: with many marker,like comma"; splitData = myText.split(/[,. s]/);