My problem is this:
I have the input string: "A|BB|CCC|DDDD|EEEEE|FFFFFF|GGGGGGG"
. I need to split this string in the "|", so that in the case it divides in 6.
But I need each value to be in an array of 10 characters or more and the "|".
For example:
array(0) = "A|BB|CCC" //8 caracteres
array(1) = "DDDD|EEEEE" //10 caracteres
array(2) = "FFFFFF" //6 caracteres
array(3) = "GGGGGGG" //7 caracteres
As I've done so far:
- I used split to break the input string;
- I made a for the size of the array formed by the split;
- I run each value of the array next to a counter in an if that puts the values concatenated with "|" inside the array.