Given an array of arrays, how can I strip out the substring "GB" from each value?
Posted
by stormist
on Stack Overflow
See other posts from Stack Overflow
or by stormist
Published on 2010-05-11T00:31:15Z
Indexed on
2010/05/11
0:44 UTC
Read the original article
Hit count: 245
Each item in my array is an array of about 5 values.. Some of them are numerical ending in "GB".. I need the same array but with "GB" stripped out so that just the number remains.
So I need to iterate through my whole array, on each subarray take each value and strip the string "GB" from it and create a new array from the output.
Can anyone recommend and efficient method of doing this?
© Stack Overflow or respective owner