Search NSArray for string

I have an NSArray with multiple elements that each look like:

serverName:“name1”
serverURL:“https://nam1.com
serverAPIKey:“asdfasdfasdf”

what I want to do is get the index for the string “name1” or whatever that happens to be, but reading the docs and trying to find examples elsewhere has been less than fruitful. I know I could just do it as a list of records and interate, but if there’s a better way to do it, I’d much rather do that.

I think there’s something about asking a question…figured out NSPredicate for this. Yay!