I have this below string of objects as shown below.
[0,5]
0: "A123 G 2323232"
1: "F345 G 345667"
2: "T677 G -34343"
3: "G454 G 4343"
4: ""
As you can see "A123 G 2323232" is a string which has tab seperated values in it.
I would like to have a final output as follows.
[0,4]
0:
UserId:A123
Type: G
Values: 2323232
1:
UserId: F345
Type: G
Values: 345667
2:
UserId: T677
Type: G
Values: -34343
3:
UserId: G454
Type: G
Values: 4343
Please note. the 4th element is empty string. so it should not transform to final data.
Can anyone please suggest how to distribute this to different elements.
' '? Or are they\t?