I have this:
<:cmd:409342761179938838> <:nobot:409342761246916610> <:haha:409342761272344578> <:rrrr:409342761431728139> <:aaa:409342761439854593> <:fff:409342761503031296> <:woah:409342761532391424> <:swon:409342761549037568> <:owoah:409342761595043850> <:sss:409342761662414848>
Convert it to this array: using .split(' ')
[ '<:cmd:409342761179938838>',
'<:nobot:409342761246916610>',
'<:haha:409342761272344578>',
'<:rrrr:409342761431728139>',
'<:aaa:409342761439854593>',
'<:fff:409342761503031296>',
'<:woah:409342761532391424>',
'<:swon:409342761549037568>',
'<:owoah:409342761595043850>',
'<:sss:409342761662414848>' ]
But i don't know how to split it several arrays so each will have 100 symbols in it
like this:
[ '<:cmd:409342761179938838> <:nobot:409342761246916610> <:haha:409342761272344578>' ],
[ '<:rrrr:409342761431728139> <:aaa:409342761439854593> <:fff:409342761503031296>' ],
[ '<:woah:409342761532391424> <:swon:409342761549037568> <:owoah:409342761595043850>' ],
[ '<:sss:409342761662414848>']
p.s. i tried use .match(/.{1,100}/g);
but i got this
[ '<:cmd:409342761179938838> <:nobot:409342761246916610> <:haha:409342761272344578> <:rrrr:409342761431 '], ['728139>... etc ']
and i don't want to split <:rrrr:409342761431728139>
.split()array. Loop through the array, concatating elements to the strings in the result array. Whenever the length gets above 100 start a new string.