I don't understand this part of your post:
give me the index location of their name, strip the user id out of it and put it into a different array.
I did the "give me the index location".
But I don't understand the point of putting the result(s) in a different array.
Presumably, there will only be one result, so why does it need to go into an array??
And even if you modified my code to find multiple results, after stripping out the userids all that is left are the numeric values, so the new array would end up looking like
[ 1000000, 1887331, 2000181 ]
How would that be useful?