I have an array that looks like this:
["text1[483]", "text 2[411]", "text 3[560]", "text[484]"]
What I need to do is to create from the values of this array about I need to create 2 new arrays.
One array will contain the text and the [] and anything inside should disappear from it.
The other array would just contain the numbers without the []
So, the new arrays would look like this:
TextArray:
["text1", "text 2", "text 3", "text"]
NumberArray:
["483", "411", "560", "484"]
How can I do this?