Is there a way to do this?
Like say I need to search for all indexes that have a value that is a string, but I only want to search for part of the string.
I've pushed the following values to the array:
"Oranges 10" is a value I want to keep in there, so I want to use IndexOf with Delete to kill the other two. I can't just pop the front of the array because that would get rid of "Grapes 2" as well. How would I target just the "Oranges 2" and "Oranges 3" values for deletion if I want to do it by searching for "Oranges"? Is there a better way of doing this that I'm missing?