1
I need to know how to separate, in line breaks, a string each N characters. However, before separating each N characters, they have already been separated by each comma.
I want that in the output this separation is line break.
Only the comma is very simple, just one split(",").join("\n")
that already resolves. But a separation within another separation cannot. I even think of some solutions but all very large, and for my code I need something simple.
For example, a separation every 6 characters:
Entree:
teste,testando,outro teste
Exit:
teste
testan
do
outro
teste