objective c - parse strings separated by 2 elements -


on mac os x, in ojective-c, wanted know if give me pointers how parse strings contained between "x" , "y".

my current code enables me separate strings separated 1 componennt :

nsarray * alllines = [thedataobject componentsseparatedbystring:@"word-1"]; 

ideally, isolate strings contained between @"word-1" , @"word-2".

could please? in advance!

check documentation nsscanner. methods want -scanuptostring:intostring: , -scanstring:intostring:


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -