i have a issue with programming for android.
i have a string like this:
[[“Km”],[“Portagens”],[“Refeições – Almoço”],[“Refeições –
Jantar”],[“Refeições – Lanche”],[“Estacionamento”],[“Estadia
Hotel”],[“Gasóleo”],[“Gasolina”],[“Taxi”],[“Combóio”],[“Avião”],[“Viatura
de Aluguer”],[“Viaturas
BIQ”],[“Economato”],[“Correio”],[“Outros”],[“Refeições – Pequeno
almoço”]]
I want to split this, to save the content into a array, like this:
Km
Portagens
Refeições-Almoço
Refeições-Jantar
Refeições-Lanche
Estacionamento
.
.
.
.
So the dividers are:
1- [
2- ]
3 - "
4 - ,
How can i split the string with this chars?
If i use [\\W], i get some blank strings.
Can you help me?
Regards.
How about
This splits where there are one or more of the 4 characters you mentioned.