Get String Between Two Other Strings in ObjC

Viewed 15816

I am trying to parse a string and get another string in the middle.

ie.

Hello world this is a string

I need to find the string between "world" and "is" (this). I have looked around but haven't been able to figure it out yet, mainly because I am new to Objective C... Anyone have an idea of how to do this, with RegEx or without?

4 Answers
Related