1
I have a variable with the following content:
10
20 30
40 50 60
70 80 90
100
There are spaces (can be 2 or more in a row) and line breaks (also several in the sequence), and I want to replace to stay this way:
10
20
30
40
50
60
70
80
90
100
Each value in a row, no empty lines and no spaces.
I tried for the conteudo = conteudo.replace(" ", "\n");
but the empty lines stay.
Have to replace everything at once or clear these empty lines after breaking all values ?
Variable of type String?
– Laerte
@Laerte this, String !
– rbz
There you want to turn into another string only formatted the way you posted, right or want a list with the values?
– Laerte
In the same String, already "treated"
– rbz