function stringToArray(s) { var arr = [], m, rx = /[a-zа-яё]+|./ig; while(m = rx.exec(s)) { arr.push(m[0]); } return arr; } var a = stringToArray('Hello, world!'); alert(JSON.stringify(a, '', 4));