I have a string which looks something like this
{Rare,Medium,Gennemstegt}{
Pommes,Bag
t Kartoffel{Hvidløg,Krydder,
Smør}}{Sov
s1,Sovs2,S
ovs3}
it can ofcause change alot - depending on user input
does anyone know a split command or alike which could give me the following result
arr(0) = {Rare,Medium,Gennemstegt}
arr(1) = {Pommes,Bagt Kartoffel{Hvidløg,Krydder,
Smør}}
arr(2) = {Sovs1,Sovs2,Sovs3}
I was thinking of simply looping through the string and counting the number of { and } once these were equal i would have my first string, then proceed however could this be done by a Regular Expression or ?
Start Free Trial