I have an array:
result = [
"205/65 15",
"205/65 16",
"205/65 17.5"
];
And I would like to extract the same string for items in the array, in this case 205/65 1.
And it should leave the array as:
extracted = "205/65 1";
leftover = [
"5",
"6",
"7.5"
];
extracted is a variable the needs to be populated with the duplicate string that was extracted. It is not known before hand.