I have a VERY long NSString
. It contains about 100 strings I need to pull out of it, all randomly scattered throughout. They are all commonly are between imgurl=
and &
.
I could use NSRange
and just loop through pulling out each string, but I'm wondering if there is a quicker was to pick out everything in a simple API call? Maybe something I am missing here?
Looking for the quickest way to do this. Thanks!
Using
NSString
methodscomponentsSeparatedByString
andcomponentsSeparatedByCharactersInSet
: