objective c - Extract the text between the two substring in NSString -


I need to remove all the lines between the two stars, such as start and end in nsstring

For example,

  & lt; Some text & gt; Start Line 1 Line 2 & lt; Some text & gt; Start Line 1 Line 2 Completion   

I need to discard all the lessons that are not coming under these blocks. Any idea how to do it

see -componentsSeparatedByString: in NSSTING DOCUMENTATION.

Comments